mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-01 01:14:24 +08:00
add ext client check for endpoint nil
This commit is contained in:
parent
eb1aa3a386
commit
467cf81000
1 changed files with 1 additions and 0 deletions
|
@ -280,6 +280,7 @@ func (m *ManagerAction) AddInterfaceToProxy() error {
|
|||
defer func() {
|
||||
if addExtClient {
|
||||
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{
|
||||
Interface: wgInterface.Name,
|
||||
PeerKey: peer.PublicKey.String(),
|
||||
|
|
Loading…
Add table
Reference in a new issue