Update tunnel to send discovery on connect and multicast messages. Announce as broadcast

This commit is contained in:
Asim Aslam
2019-09-05 15:16:11 +01:00
parent a1ba1482c5
commit 1840b5bd74
3 changed files with 105 additions and 29 deletions

View File

@@ -24,7 +24,7 @@ type tunListener struct {
// periodically announce self
func (t *tunListener) announce() {
tick := time.NewTicker(time.Minute)
tick := time.NewTicker(time.Second * 30)
defer tick.Stop()
// first announcement