- 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>
18 lines
242 B
Go
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
|
|
}
|