mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
0babdad17b
* chore: upgrade go-waku to v0.5 * chore: add println and logs to check what's being stored in the enr, and preemptively delete the multiaddr field (#3219) * feat: add wakuv2 test (#3218)
23 lines
445 B
Go
23 lines
445 B
Go
// A stub routing table conformant interface for js/wasm environments.
|
|
|
|
//go:build js && wasm
|
|
|
|
package netroute
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/google/gopacket/routing"
|
|
)
|
|
|
|
func New() (routing.Router, error) {
|
|
rtr := &router{}
|
|
rtr.ifaces = make(map[int]net.Interface)
|
|
rtr.ifaces[0] = net.Interface{}
|
|
rtr.addrs = make(map[int]ipAddrs)
|
|
rtr.addrs[0] = ipAddrs{}
|
|
rtr.v4 = routeSlice{&rtInfo{}}
|
|
rtr.v6 = routeSlice{&rtInfo{}}
|
|
return rtr, nil
|
|
}
|