Files
node/nat/pmp.go
T
Hanzo AI 3774075c95 feat: clean up dead code, update deps, add xvm genesis/fx and genesis builder
Remove unused bloom filter, test helpers, metrics scaffolding, and
linearizable VM wrapper. Trim stale go.sum entries. Add genesis builder
helpers and xvm FX/genesis initialization.
2026-04-19 17:05:59 -07:00

26 lines
812 B
Go

//go:build !nattraversal
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package nat
import (
"net/netip"
"time"
)
// getPMPRouter returns nil in minimal build (no NAT-PMP support).
// Build with -tags=nattraversal for NAT-PMP support.
func getPMPRouter() *pmpRouter {
return nil
}
// pmpRouter stub for minimal build
type pmpRouter struct{}
func (*pmpRouter) SupportsNAT() bool { return false }
func (*pmpRouter) MapPort(_, _ uint16, _ string, _ time.Duration) error { return nil }
func (*pmpRouter) UnmapPort(_, _ uint16) error { return nil }
func (*pmpRouter) ExternalIP() (netip.Addr, error) { return netip.Addr{}, nil }