parent
6881d6d585
commit
3f47fc8ba4
28 changed files with 32 additions and 33 deletions
|
@ -62,7 +62,7 @@ func ToEndpoints(obj interface{}) interface{} {
|
|||
Addresses: make([]EndpointAddress, len(eps.Addresses)),
|
||||
}
|
||||
if len(eps.Ports) == 0 {
|
||||
// Add sentinal if there are no ports.
|
||||
// Add sentinel if there are no ports.
|
||||
sub.Ports = []EndpointPort{{Port: -1}}
|
||||
} else {
|
||||
sub.Ports = make([]EndpointPort, len(eps.Ports))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue