mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-23 02:36:42 +00:00
- Add sha prefix for peer id in protocol
- Add magic cookie in hello msg - Add tests
This commit is contained in:
@@ -194,6 +194,7 @@ func (m *Manager) isForeignServer(address string) (bool, error) {
|
||||
if err != nil {
|
||||
return false, fmt.Errorf("relay client not connected")
|
||||
}
|
||||
log.Debugf("check if foreign server: %s != %s", rAddr.String(), address)
|
||||
return rAddr.String() != address, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user