mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-27 12:05:23 +00:00
send a message to the sessions to update mtu instead of trying to update it directly
This commit is contained in:
parent
d3a2087e0f
commit
248a08b2f1
@ -136,7 +136,10 @@ func (ss *sessions) init(r *router) {
|
|||||||
func (ss *sessions) reconfigure() {
|
func (ss *sessions) reconfigure() {
|
||||||
ss.router.Act(nil, func() {
|
ss.router.Act(nil, func() {
|
||||||
for _, session := range ss.sinfos {
|
for _, session := range ss.sinfos {
|
||||||
session.myMTU = ss.myMaximumMTU
|
sinfo, mtu := session, ss.myMaximumMTU
|
||||||
|
sinfo.Act(ss.router, func() {
|
||||||
|
sinfo.myMTU = mtu
|
||||||
|
})
|
||||||
session.ping(ss.router)
|
session.ping(ss.router)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user