mirror of
https://github.com/DeBrosOfficial/orama.git
synced 2026-03-17 06:43:01 +00:00
Fixed filter our prviate ips on dns register
This commit is contained in:
parent
b43e6d77b7
commit
e95ecfb12a
@ -47,8 +47,8 @@ func showEnvHelp() {
|
||||
fmt.Printf(" enable - Alias for 'switch' (e.g., 'devnet enable')\n\n")
|
||||
fmt.Printf("Available Environments:\n")
|
||||
fmt.Printf(" local - Local development (http://localhost:6001)\n")
|
||||
fmt.Printf(" devnet - Development network (https://devnet.orama.network)\n")
|
||||
fmt.Printf(" testnet - Test network (https://testnet.orama.network)\n\n")
|
||||
fmt.Printf(" devnet - Development network (https://orama-devnet.network)\n")
|
||||
fmt.Printf(" testnet - Test network (https://orama-tesetnet.network)\n\n")
|
||||
fmt.Printf("Examples:\n")
|
||||
fmt.Printf(" orama env list\n")
|
||||
fmt.Printf(" orama env current\n")
|
||||
|
||||
@ -39,13 +39,13 @@ var DefaultEnvironments = []Environment{
|
||||
},
|
||||
{
|
||||
Name: "devnet",
|
||||
GatewayURL: "https://devnet.orama.network",
|
||||
GatewayURL: "https://orama-devnet.network",
|
||||
Description: "Development network (testnet)",
|
||||
IsActive: false,
|
||||
},
|
||||
{
|
||||
Name: "testnet",
|
||||
GatewayURL: "https://testnet.orama.network",
|
||||
GatewayURL: "https://orama-tesetnet.network",
|
||||
Description: "Test network (staging)",
|
||||
IsActive: false,
|
||||
},
|
||||
|
||||
@ -399,7 +399,7 @@ func (n *Node) getNodeIPAddress() (string, error) {
|
||||
}
|
||||
|
||||
for _, addr := range addrs {
|
||||
if ipnet, ok := addr.(*net.IPNet); ok && !ipnet.IP.IsLoopback() {
|
||||
if ipnet, ok := addr.(*net.IPNet); ok && !ipnet.IP.IsLoopback() && !ipnet.IP.IsPrivate() {
|
||||
if ipnet.IP.To4() != nil {
|
||||
return ipnet.IP.String(), nil
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user