Kademlia: Use information requests from updated DHT library. More testing & fixes upcoming.

This commit is contained in:
Kleissner
2021-04-09 16:36:35 +02:00
parent c44e57a0a0
commit e69589c5c8
10 changed files with 185 additions and 64 deletions

View File

@@ -140,7 +140,7 @@ func networkStart(iface net.Interface, addresses []net.Addr) {
func networkPrepareListen(ipA string, port int) (network *Network, err error) {
ip := net.ParseIP(ipA)
if ip == nil {
return nil, errors.New("Invalid input IP")
return nil, errors.New("invalid input IP")
}
network = new(Network)
@@ -150,7 +150,7 @@ func networkPrepareListen(ipA string, port int) (network *Network, err error) {
if ipA != "0.0.0.0" && ipA != "::" {
network.iface, network.ipnet = FindInterfaceByIP(ip)
if network.iface == nil {
return nil, errors.New("Error finding the network interface belonging to IP")
return nil, errors.New("error finding the network interface belonging to IP")
}
}