Browse Source

add ext client check for endpoint nil

Abhishek Kondur 2 years ago
parent
commit
467cf81000
1 changed files with 1 additions and 0 deletions
  1. 1 0
      nm-proxy/manager/manager.go

+ 1 - 0
nm-proxy/manager/manager.go

@@ -280,6 +280,7 @@ func (m *ManagerAction) AddInterfaceToProxy() error {
 				defer func() {
 				defer func() {
 					if addExtClient {
 					if addExtClient {
 						log.Println("GOT ENDPOINT for Extclient adding peer...")
 						log.Println("GOT ENDPOINT for Extclient adding peer...")
+						go packet.StartSniffer(wgInterface.Name, peerConf.Address)
 						common.PeerKeyHashMap[fmt.Sprintf("%x", md5.Sum([]byte(peer.PublicKey.String())))] = common.RemotePeer{
 						common.PeerKeyHashMap[fmt.Sprintf("%x", md5.Sum([]byte(peer.PublicKey.String())))] = common.RemotePeer{
 							Interface:           wgInterface.Name,
 							Interface:           wgInterface.Name,
 							PeerKey:             peer.PublicKey.String(),
 							PeerKey:             peer.PublicKey.String(),