proxy changes

This commit is contained in:
Abhishek Kondur
2022-12-02 17:35:41 +05:30
parent 5b7ead91e6
commit 4b1a85a3ee
13 changed files with 129 additions and 88 deletions

View File

@@ -236,10 +236,10 @@ func UpdatePeers(client mqtt.Client, msg mqtt.Message) {
config.Write(&cfg, cfg.Network)
}
if cfg.Node.Proxy {
ProxyMgmChan <- &peerUpdate.ProxyUpdate
return
}
// if cfg.Node.Proxy {
// ProxyMgmChan <- &peerUpdate.ProxyUpdate
// return
// }
file := ncutils.GetNetclientPathSpecific() + cfg.Node.Interface + ".conf"
internetGateway, err := wireguard.UpdateWgPeers(file, peerUpdate.Peers)
if err != nil {