File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed
Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 11package android
22
3- import "github.com/netbirdio/netbird/client/internal/peer"
3+ import (
4+ "github.com/netbirdio/netbird/client/internal/lazyconn"
5+ "github.com/netbirdio/netbird/client/internal/peer"
6+ )
47
58var (
6- // EnvKeyNBForceRelay Exported for Android java client
9+ // EnvKeyNBForceRelay Exported for Android java client to force relay connections
710 EnvKeyNBForceRelay = peer .EnvKeyNBForceRelay
11+
12+ // EnvKeyNBLazyConn Exported for Android java client to configure lazy connection
13+ EnvKeyNBLazyConn = lazyconn .EnvEnableLazyConn
14+
15+ // EnvKeyNBInactivityThreshold Exported for Android java client to configure connection inactivity threshold
16+ EnvKeyNBInactivityThreshold = lazyconn .EnvInactivityThreshold
817)
918
1019// EnvList wraps a Go map for export to Java
Original file line number Diff line number Diff line change 22
33package NetBirdSDK
44
5- import "github.com/netbirdio/netbird/client/internal/peer"
5+ import (
6+ "github.com/netbirdio/netbird/client/internal/lazyconn"
7+ "github.com/netbirdio/netbird/client/internal/peer"
8+ )
69
710// EnvList is an exported struct to be bound by gomobile
811type EnvList struct {
@@ -32,3 +35,13 @@ func (el *EnvList) AllItems() map[string]string {
3235func GetEnvKeyNBForceRelay () string {
3336 return peer .EnvKeyNBForceRelay
3437}
38+
39+ // GetEnvKeyNBLazyConn Exports the environment variable for the iOS client
40+ func GetEnvKeyNBLazyConn () string {
41+ return lazyconn .EnvEnableLazyConn
42+ }
43+
44+ // GetEnvKeyNBInactivityThreshold Exports the environment variable for the iOS client
45+ func GetEnvKeyNBInactivityThreshold () string {
46+ return lazyconn .EnvInactivityThreshold
47+ }
You can’t perform that action at this time.
0 commit comments