mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-12-22 14:05:41 +00:00
Use MTU from interface definition
This commit is contained in:
parent
d7be706413
commit
62c45e7cc7
@ -83,7 +83,7 @@ func (tun *tunDevice) setupAddress(addr string) error {
|
||||
|
||||
var ir ifreq
|
||||
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 IPv6: %s", addr)
|
||||
|
Loading…
Reference in New Issue
Block a user