mirror of
https://github.com/Egida/EndGame0.git
synced 2025-08-09 06:42:21 -04:00
EndGame v3
This commit is contained in:
commit
9e36ba54ee
646 changed files with 271674 additions and 0 deletions
23
sourcecode/gobalance/pkg/onionbalance/consensus_test.go
Normal file
23
sourcecode/gobalance/pkg/onionbalance/consensus_test.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package onionbalance
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestParseIPv6AddressAndPort(t *testing.T) {
|
||||
_, getStatus, err := ParseRawStatus(`r Karlstad0 m5TNC3uAV+ryG6fwI7ehyMqc5kU f1g9KQhgS0r6+H/7dzAJOpi6lG8 2014-12-08 06:57:54 193.11.166.194 9000 80
|
||||
a [2002:470:6e:80d::2]:22
|
||||
s Fast Guard HSDir Running Stable V2Dir Valid
|
||||
v Tor 0.2.4.23
|
||||
w Bandwidth=2670
|
||||
p reject 1-65535`)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
if getStatus().Address.IPv6Address.String() != "2002:470:6e:80d::2" {
|
||||
t.Error("Failes to Parse IPv6 Address correctly.")
|
||||
}
|
||||
|
||||
if getStatus().Address.IPv6ORPort != StringToPort("22") {
|
||||
t.Error("Failes to Parse IPv6 Port correctly.")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue