|
@@ -226,7 +226,7 @@ func (m *ManagerAction) AddInterfaceToProxy() error {
|
|
|
|
|
|
for _, peerI := range m.Payload.Peers {
|
|
for _, peerI := range m.Payload.Peers {
|
|
peerConf := m.Payload.PeerMap[peerI.PublicKey.String()]
|
|
peerConf := m.Payload.PeerMap[peerI.PublicKey.String()]
|
|
- if peerI.Endpoint == nil && !peerConf.IsExtClient {
|
|
|
|
|
|
+ if peerI.Endpoint == nil && (!peerConf.IsAttachedExtClient || !peerConf.IsExtClient) {
|
|
log.Println("Endpoint nil for peer: ", peerI.PublicKey.String())
|
|
log.Println("Endpoint nil for peer: ", peerI.PublicKey.String())
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
@@ -279,6 +279,7 @@ func (m *ManagerAction) AddInterfaceToProxy() error {
|
|
addExtClient := false
|
|
addExtClient := false
|
|
defer func() {
|
|
defer func() {
|
|
if addExtClient {
|
|
if addExtClient {
|
|
|
|
+ log.Println("GOT ENDPOINT for Extclient adding peer...")
|
|
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(),
|