Audit changes
This commit is contained in:
@@ -21,12 +21,13 @@ func (a *App) onTick() {
|
||||
a.devRemove(&Peer{wgPeer: wgPeer})
|
||||
continue
|
||||
}
|
||||
|
||||
p.wgPeer = wgPeer
|
||||
if a.isPublic && !p.IsPublic {
|
||||
if ep := p.WGEndpoint(); ep != p.EndpointV4 {
|
||||
log.Printf("Client %s %s endpoint: %s -> %s", p.Name, p.VPNIP, p.EndpointV4, ep)
|
||||
p.EndpointV4 = ep
|
||||
}
|
||||
|
||||
// Log endpoint changes.
|
||||
if ep := p.WGEndpoint(); ep != p.EndpointWG {
|
||||
log.Printf("Client %s %s endpoint: %s -> %s", p.Name, p.VPNIP, p.EndpointWG, ep)
|
||||
p.EndpointWG = ep
|
||||
}
|
||||
|
||||
// Send pings to peers where we're the client.
|
||||
|
||||
Reference in New Issue
Block a user