mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-10 05:45:52 +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() {
|
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(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue