Skip to content

Commit

Permalink
Merge branch 'main' into fix/handle-routes-before-peers
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal committed Jun 17, 2024
2 parents d43c915 + c9f3854 commit fd41cb9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/internal/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,18 @@ func (c *ConnectClient) Engine() *Engine {

// createEngineConfig converts configuration received from Management Service to EngineConfig
func createEngineConfig(key wgtypes.Key, config *Config, peerConfig *mgmProto.PeerConfig) (*EngineConfig, error) {
nm := false
if config.NetworkMonitor != nil {
nm = *config.NetworkMonitor
}
engineConf := &EngineConfig{
WgIfaceName: config.WgIface,
WgAddr: peerConfig.Address,
IFaceBlackList: config.IFaceBlackList,
DisableIPv6Discovery: config.DisableIPv6Discovery,
WgPrivateKey: key,
WgPort: config.WgPort,
NetworkMonitor: *config.NetworkMonitor,
NetworkMonitor: nm,
SSHKey: []byte(config.SSHKey),
NATExternalIPs: config.NATExternalIPs,
CustomDNSAddress: config.CustomDNSAddress,
Expand Down

0 comments on commit fd41cb9

Please sign in to comment.