fixed constant peer update issue

This commit is contained in:
afeiszli
2021-04-19 10:49:52 -04:00
parent c6714bcb8e
commit 529a511a79
6 changed files with 11 additions and 8 deletions

View File

@@ -1090,8 +1090,11 @@ func CheckIn(network string) error {
if err != nil {
fmt.Println("ERROR DELETING INTERFACE: " + currentiface)
}
}
err = setWGConfig(network)
if err != nil {
log.Printf("Error updating interface: %v", err)
}
}
}
if checkinres.Checkinresponse.Needconfigupdate {