mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-20 17:26:40 +00:00
Complete overhaul
This commit is contained in:
@@ -71,6 +71,11 @@ type Info struct {
|
||||
BlockInbound bool
|
||||
|
||||
LazyConnectionEnabled bool
|
||||
|
||||
EnableSSHRoot bool
|
||||
EnableSSHSFTP bool
|
||||
EnableSSHLocalPortForwarding bool
|
||||
EnableSSHRemotePortForwarding bool
|
||||
}
|
||||
|
||||
func (i *Info) SetFlags(
|
||||
@@ -78,6 +83,7 @@ func (i *Info) SetFlags(
|
||||
serverSSHAllowed *bool,
|
||||
disableClientRoutes, disableServerRoutes,
|
||||
disableDNS, disableFirewall, blockLANAccess, blockInbound, lazyConnectionEnabled bool,
|
||||
enableSSHRoot, enableSSHSFTP, enableSSHLocalPortForwarding, enableSSHRemotePortForwarding *bool,
|
||||
) {
|
||||
i.RosenpassEnabled = rosenpassEnabled
|
||||
i.RosenpassPermissive = rosenpassPermissive
|
||||
@@ -93,6 +99,19 @@ func (i *Info) SetFlags(
|
||||
i.BlockInbound = blockInbound
|
||||
|
||||
i.LazyConnectionEnabled = lazyConnectionEnabled
|
||||
|
||||
if enableSSHRoot != nil {
|
||||
i.EnableSSHRoot = *enableSSHRoot
|
||||
}
|
||||
if enableSSHSFTP != nil {
|
||||
i.EnableSSHSFTP = *enableSSHSFTP
|
||||
}
|
||||
if enableSSHLocalPortForwarding != nil {
|
||||
i.EnableSSHLocalPortForwarding = *enableSSHLocalPortForwarding
|
||||
}
|
||||
if enableSSHRemotePortForwarding != nil {
|
||||
i.EnableSSHRemotePortForwarding = *enableSSHRemotePortForwarding
|
||||
}
|
||||
}
|
||||
|
||||
// StaticInfo is an object that contains machine information that does not change
|
||||
|
||||
Reference in New Issue
Block a user