Set conf.mtu.local for all new path

This commit is contained in:
Adrien Gallouët
2016-12-22 13:43:02 +00:00
parent bd5323a46e
commit fd1a1285ac

3
mud.c
View File

@@ -488,6 +488,8 @@ mud_path(struct mud *mud, struct mud_ipaddr *local_addr,
mud_set_path(path, local_addr, addr);
path->conf.mtu.local = mud->mtu; // XXX
path->next = mud->path;
mud->path = path;
@@ -532,7 +534,6 @@ mud_peer(struct mud *mud, const char *name, const char *host, int port,
path->state.active = 1;
path->state.backup = !!backup;
path->conf.mtu.local = mud->mtu; // XXX
return 0;
}