mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03: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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue