mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-09 17:53:59 +00:00
Print LANs on startup
This commit is contained in:
parent
124b189cc0
commit
60faabcbe2
@ -486,8 +486,13 @@ func syncthingMain() {
|
|||||||
readRateLimit = ratelimit.NewBucketWithRate(float64(1000*opts.MaxRecvKbps), int64(5*1000*opts.MaxRecvKbps))
|
readRateLimit = ratelimit.NewBucketWithRate(float64(1000*opts.MaxRecvKbps), int64(5*1000*opts.MaxRecvKbps))
|
||||||
}
|
}
|
||||||
|
|
||||||
if opts.MaxRecvKbps > 0 || opts.MaxSendKbps > 0 {
|
if (opts.MaxRecvKbps > 0 || opts.MaxSendKbps > 0) && !opts.LimitBandwidthInLan {
|
||||||
lans, _ = osutil.GetLans()
|
lans, _ = osutil.GetLans()
|
||||||
|
networks := make([]string, 0, len(lans))
|
||||||
|
for _, lan := range lans {
|
||||||
|
networks = append(networks, lan.String())
|
||||||
|
}
|
||||||
|
l.Infoln("Local networks:", strings.Join(networks, ", "))
|
||||||
}
|
}
|
||||||
|
|
||||||
dbFile := filepath.Join(confDir, "index")
|
dbFile := filepath.Join(confDir, "index")
|
||||||
|
Loading…
Reference in New Issue
Block a user