Bug fix and update version

This commit is contained in:
Alec Scott
2022-01-31 22:06:15 -07:00
parent a20157200e
commit 4459d40c65
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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)
}