Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pkg/liqoctl/info/peer/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ func (nc *NetworkChecker) collectGatewayInfo(ctx context.Context, cl client.Clie
peerNetwork.Gateway.Port = gwClient.Spec.Endpoint.Port
case gwServer != nil:
peerNetwork.Gateway.Role = GatewayClientType
peerNetwork.Gateway.Address = gwServer.Status.Endpoint.Addresses
peerNetwork.Gateway.Port = gwServer.Status.Endpoint.Port
if gwServer.Status.Endpoint != nil {
peerNetwork.Gateway.Address = gwServer.Status.Endpoint.Addresses
peerNetwork.Gateway.Port = gwServer.Status.Endpoint.Port
}
default:
return fmt.Errorf("no gateways found")
}
Expand Down
Loading