mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-15 01:32:56 +02:00
Add support for setting interface name and wireguard port (#1467)
This PR adds support for setting the wireguard interface name and port with the netbird up command
This commit is contained in:
@ -192,6 +192,17 @@ func (s *Server) Login(callerCtx context.Context, msg *proto.LoginRequest) (*pro
|
||||
s.latestConfigInput.RosenpassEnabled = msg.RosenpassEnabled
|
||||
}
|
||||
|
||||
if msg.InterfaceName != nil {
|
||||
inputConfig.InterfaceName = msg.InterfaceName
|
||||
s.latestConfigInput.InterfaceName = msg.InterfaceName
|
||||
}
|
||||
|
||||
if msg.WireguardPort != nil {
|
||||
port := int(*msg.WireguardPort)
|
||||
inputConfig.WireguardPort = &port
|
||||
s.latestConfigInput.WireguardPort = &port
|
||||
}
|
||||
|
||||
s.mutex.Unlock()
|
||||
|
||||
inputConfig.PreSharedKey = &msg.PreSharedKey
|
||||
|
Reference in New Issue
Block a user