Skip to content

Commit

Permalink
Merge pull request #472 from subutai-io/hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
crioto authored Dec 1, 2017
2 parents 7584951 + 6349e57 commit de3ecc9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## [6.2.5] 12/01/2017

* Fixed proxy array population
* Fixed unnecessary goroutine creation

## [6.2.4] 11/30/2017

* Refactored communication between peers over TURN server
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.2.4
6.2.5
1 change: 1 addition & 0 deletions lib/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ func (p *PeerToPeer) FindNetworkAddresses() {

// StartP2PInstance is an entry point of a P2P library.
func New(argIP, argMac, argDev, argDirect, argHash, argDht, argKeyfile, argKey, argTTL, argLog string, fwd bool, port int, ignoreIPs []string, outboundIP net.IP) *PeerToPeer {
argDht = "mdht.subut.ai:6881"
p := new(PeerToPeer)
p.outboundIP = outboundIP
p.Init()
Expand Down
3 changes: 2 additions & 1 deletion lib/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (p *PeerToPeer) initProxy(addr string) error {
return fmt.Errorf("Failed to resolve proxy address")
}
for _, pr := range p.Proxies {
if pr.Addr == proxy.Addr {
if pr.Addr.String() == proxy.Addr.String() {
return fmt.Errorf("Proxy %s already exists", addr)
}
}
Expand All @@ -50,6 +50,7 @@ func (p *PeerToPeer) initProxy(addr string) error {
p.removeProxy(proxy.Addr)
return fmt.Errorf("Wrong proxy status")
}
Log(Info, "Proxy %s initialization complete", addr)
return nil
}

Expand Down

0 comments on commit de3ecc9

Please sign in to comment.