Browse Source
Merge pull request #563 from libp2p/fix/simplify-unspecific-relay
relay: simplify declaration of multiaddr var
pull/568/head
v0.0.3
vyzo
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
9 deletions
-
p2p/host/relay/autorelay.go
|
|
@ -30,17 +30,9 @@ var ( |
|
|
|
|
|
|
|
BootDelay = 60 * time.Second |
|
|
|
|
|
|
|
unspecificRelay ma.Multiaddr |
|
|
|
unspecificRelay = ma.StringCast("/p2p-circuit") |
|
|
|
) |
|
|
|
|
|
|
|
func init() { |
|
|
|
var err error |
|
|
|
unspecificRelay, err = ma.NewMultiaddr("/p2p-circuit") |
|
|
|
if err != nil { |
|
|
|
panic(err) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// AutoRelayHost is a Host that uses relays for connectivity when a NAT is detected.
|
|
|
|
type AutoRelayHost struct { |
|
|
|
*basic.BasicHost |
|
|
|