mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Use MTU from interface definition
This commit is contained in:
parent
d7be706413
commit
62c45e7cc7
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ func (tun *tunDevice) setupAddress(addr string) error {
|
||||||
|
|
||||||
var ir ifreq
|
var ir ifreq
|
||||||
copy(ir.ifr_name[:], tun.iface.Name())
|
copy(ir.ifr_name[:], tun.iface.Name())
|
||||||
ir.ifru_mtu = 1280
|
ir.ifru_mtu = uint32(tun.mtu)
|
||||||
|
|
||||||
tun.core.log.Printf("Interface name: %s", ar.ifra_name)
|
tun.core.log.Printf("Interface name: %s", ar.ifra_name)
|
||||||
tun.core.log.Printf("Interface IPv6: %s", addr)
|
tun.core.log.Printf("Interface IPv6: %s", addr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue