Commit 7f590617 authored by Kirill Smelkov's avatar Kirill Smelkov

go/neo/proto: AddrString: Also treat lonet networks as having addr in host:port form

Without that, when lonet will be used in tests, port won't be correctly
extracted from an address.
parent 2e5989a2
// Copyright (C) 2017-2018 Nexedi SA and Contributors.
// Copyright (C) 2017-2021 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
......@@ -157,6 +157,7 @@ func AddrString(network, addr string) (Address, error) {
case strings.HasPrefix(network, "tcp"):
case strings.HasPrefix(network, "udp"):
case strings.HasPrefix(network, "pipe"):
case strings.HasPrefix(network, "lonet"):
}
host, portstr, err := net.SplitHostPort(addr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment