Skip to content

Commit

Permalink
disable auto switch of proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek9686 committed Jun 28, 2023
1 parent 63a7cb8 commit 2745771
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions functions/mqpublish.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,6 @@ func UpdateHostSettings() error {
publishMsg = true
}
}
if !config.Netclient().ProxyEnabledSet && proxyCfg.GetCfg().ShouldUseProxy() &&
!config.Netclient().ProxyEnabled && !proxyCfg.NatAutoSwitchDone() {
logger.Log(0, "Host is behind NAT, enabling proxy...")
proxyCfg.SetNatAutoSwitch()
config.Netclient().ProxyEnabled = true
publishMsg = true
}
ip, err := getInterfaces()
if err != nil {
logger.Log(0, "failed to retrieve local interfaces during check-in", err.Error())
Expand Down

0 comments on commit 2745771

Please sign in to comment.