diff --git a/config/config.go b/config/config.go index 6b6dd43..252c88d 100644 --- a/config/config.go +++ b/config/config.go @@ -29,7 +29,7 @@ func init() { // Build default config. Global = Config{ General: general{ - Version: "0.0.1", + Version: "0.2.0", }, Proxy: envParseProxy(Proxy{ // Default values for the internal proxy config. diff --git a/relay.go b/relay.go index 36fa5f6..7dd6a85 100644 --- a/relay.go +++ b/relay.go @@ -92,7 +92,7 @@ func main() { // Setup Peer Table for Quick Packet --> Dest ID lookup peerTable := make(map[string]peer.ID) for _, client := range config.Global.Clients { - peerTable[string(net.ParseIP(client.Address))], err = peer.Decode(client.ID) + peerTable[net.ParseIP(client.Address).String()], err = peer.Decode(client.ID) if err != nil { log.Fatal(err) }