Hyprspace previously relied solely on Kademlia DHT with public bootstrap
nodes for peer discovery, requiring internet access for any peers to
connect. This adds libp2p mDNS discovery so that peers on the same LAN
can find each other without external infrastructure.
When a peer is discovered via mDNS and matches a configured VPN peer,
its addresses are added to the peerstore and the connection loop is
triggered immediately.
* Added ipfs/go-log and updated up.go
Use ipfs/go-log over fmt.Println
Fixed more log usages with go-log
Signed-off-by: Roland Urbano <urbano.roland@gmail.com>
log: refactor log usage to provide module global logger with configurable log level
Signed-off-by: Roland Urbano <urbano.roland@gmail.com>
Refactored logger initialization for modules
Signed-off-by: Roland Urbano <urbano.roland@gmail.com>
Removed object member loggers
Signed-off-by: Roland Urbano <urbano.roland@gmail.com>
* Implemented logging with ipfs/go-log
logging: fix logger level config
Co-authored-by: Max <max@privatevoid.net>
Update svc/network.go
Co-authored-by: Max <max@privatevoid.net>
removed static info log level constant
Co-authored-by: Max <max@privatevoid.net>
Update dns/server.go
Co-authored-by: Max <max@privatevoid.net>
Update dns/server.go
Co-authored-by: Max <max@privatevoid.net>
Update rpc/server.go
Co-authored-by: Max <max@privatevoid.net>
Applied MR suggestions
Signed-off-by: Roland Urbano <urbano.roland@gmail.com>
Enhanced logging
Signed-off-by: Roland Urbano <urbano.roland@gmail.com>
* update vendorHash
* go fmt
---------
Signed-off-by: Roland Urbano <urbano.roland@gmail.com>
Co-authored-by: Max <max@privatevoid.net>
* node: extract most of the logic from cli/up.go
* node: close interface after bringing it down
* synchronize shutdowns with a WaitGroup
* p2p: use Connect instead of DialPeer
* rpc: defer Close