ipn/ipnlocal: prevent a now-expected [unexpected] log message on Windows

Updates #1620

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2021-04-27 09:58:05 -07:00
parent b062ac5e86
commit 3bdc9e9cb2
1 changed files with 6 additions and 0 deletions

View File

@ -1833,6 +1833,12 @@ func (b *LocalBackend) initPeerAPIListener() {
if !skipListen {
ln, err = ps.listen(a.IP, b.prevIfState)
if err != nil {
if runtime.GOOS == "windows" {
// Expected for now. See Issue 1620.
// But we fix it later in linkChange
// ("peerAPIListeners too low").
continue
}
b.logf("[unexpected] peerapi listen(%q) error: %v", a.IP, err)
continue
}