Skip to content

Commit

Permalink
Merge pull request #1339 from skycoin/fix/autopeering
Browse files Browse the repository at this point in the history
fix autopeering
  • Loading branch information
jdknives authored Aug 16, 2022
2 parents 8c5e204 + e364bc4 commit c2104af
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/skywire-visor/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,8 @@ func runVisor(conf *visorconfig.V1) {
}
}
//autopeering should only happen when there is no local or remote hypervisor set in the config.
if conf.Hypervisors != nil {
if conf.Hypervisor != nil {
isAutoPeer = false
}
if conf.Hypervisor != nil || conf.Hypervisors != nil {
isAutoPeer = false
}
if isAutoPeer {
hvkey, err := visor.FetchHvPk(autoPeerIP)
Expand Down

0 comments on commit c2104af

Please sign in to comment.