diff --git a/gold/link/peer.go b/gold/link/peer.go index aae95df..169f93a 100644 --- a/gold/link/peer.go +++ b/gold/link/peer.go @@ -33,7 +33,7 @@ func (m *Me) AddPeer(cfg *PeerConfig) (l *Link) { if ok { return } - if cfg.MTU == 0 || (m.mtu != 0 && cfg.MTU > m.mtu) { + if m.mtu == 0 { panic("invalid mtu for peer " + cfg.PeerIP) } l = &Link{