Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions client/android/env_list.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
package android

import "github.com/netbirdio/netbird/client/internal/peer"
import (
"github.com/netbirdio/netbird/client/internal/lazyconn"
"github.com/netbirdio/netbird/client/internal/peer"
)

var (
// EnvKeyNBForceRelay Exported for Android java client
// EnvKeyNBForceRelay Exported for Android java client to force relay connections
EnvKeyNBForceRelay = peer.EnvKeyNBForceRelay

// EnvKeyNBLazyConn and EnvKeyNBInactivityThreshold Exported for Android java client to configure
// lazy connection and the connection inactivity threshold
EnvKeyNBLazyConn = lazyconn.EnvEnableLazyConn
Comment thread
doromaraujo marked this conversation as resolved.
Outdated
EnvKeyNBInactivityThreshold = lazyconn.EnvInactivityThreshold
)

// EnvList wraps a Go map for export to Java
Expand Down
15 changes: 14 additions & 1 deletion client/ios/NetBirdSDK/env_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

package NetBirdSDK

import "github.com/netbirdio/netbird/client/internal/peer"
import (
"github.com/netbirdio/netbird/client/internal/lazyconn"
"github.com/netbirdio/netbird/client/internal/peer"
)

// EnvList is an exported struct to be bound by gomobile
type EnvList struct {
Expand Down Expand Up @@ -32,3 +35,13 @@ func (el *EnvList) AllItems() map[string]string {
func GetEnvKeyNBForceRelay() string {
return peer.EnvKeyNBForceRelay
}

// GetEnvKeyNBLazyConn Exports the environment variable for the iOS client
func GetEnvKeyNBLazyConn() string {
return lazyconn.EnvEnableLazyConn
}

// GetEnvKeyNBInactivityThreshold Exports the environment variable for the iOS client
func GetEnvKeyNBInactivityThreshold() string {
return lazyconn.EnvInactivityThreshold
}
Loading