Files
bzzz/vendor/github.com/libp2p/go-nat/gateway.go
anthonyrawlins 5978a0b8f5 WIP: Save agent roles integration work before CHORUS rebrand
- Agent roles and coordination features
- Chat API integration testing
- New configuration and workspace management

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 02:21:11 +10:00

18 lines
242 B
Go

package nat
import (
"net"
"github.com/libp2p/go-netroute"
)
func getDefaultGateway() (net.IP, error) {
router, err := netroute.New()
if err != nil {
return nil, err
}
_, ip, _, err := router.Route(net.IPv4zero)
return ip, err
}