forked from TrueCloudLab/frostfs-node
[#607] network: Don't export L4 protocol constant
Const is used for internal package needs only. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
68c7f6ce8a
commit
b2b33aeac9
1 changed files with 3 additions and 5 deletions
|
@ -15,10 +15,6 @@ import (
|
||||||
IPAddr strings: "192.168.0.1:8080"
|
IPAddr strings: "192.168.0.1:8080"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const (
|
|
||||||
L4Protocol = "tcp"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Address represents the NeoFS node
|
// Address represents the NeoFS node
|
||||||
// network address.
|
// network address.
|
||||||
type Address struct {
|
type Address struct {
|
||||||
|
@ -125,7 +121,9 @@ func multiaddrStringFromHostAddr(host string) (string, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return strings.Join([]string{prefix, addr, L4Protocol, port}, "/"), nil
|
const l4Protocol = "tcp"
|
||||||
|
|
||||||
|
return strings.Join([]string{prefix, addr, l4Protocol, port}, "/"), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsLocalAddress returns true if network endpoint from local address
|
// IsLocalAddress returns true if network endpoint from local address
|
||||||
|
|
Loading…
Reference in a new issue