mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Change to InterfacePeers instead of modifying the tcp:// URI format
This commit is contained in:
parent
aecc151baf
commit
1796000b05
4 changed files with 32 additions and 26 deletions
|
@ -182,8 +182,8 @@ func (c *Core) SetLogger(log *log.Logger) {
|
|||
|
||||
// Adds a peer. This should be specified in the peer URI format, i.e.
|
||||
// tcp://a.b.c.d:e, udp://a.b.c.d:e, socks://a.b.c.d:e/f.g.h.i:j
|
||||
func (c *Core) AddPeer(addr string) error {
|
||||
return c.admin.addPeer(addr)
|
||||
func (c *Core) AddPeer(addr string, sintf string) error {
|
||||
return c.admin.addPeer(addr, sintf)
|
||||
}
|
||||
|
||||
// Adds an expression to select multicast interfaces for peer discovery. This
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue