Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
kuksa-client: Use port 8090 as default when VISS protocol is chosen a…
Browse files Browse the repository at this point in the history
…nd no port specified

Signed-off-by: Sebastian Schildt <[email protected]>
  • Loading branch information
SebastianSchildt committed Sep 20, 2023
1 parent f7268f2 commit 3b27221
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kuksa-client/kuksa_client/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ def connect(self):
config["protocol"] = "grpc"
elif srv.scheme in ["ws", "wss"]:
config["protocol"] = "ws"
config["port"] = 8090
else:
print(f"Invalid server URI. Unsupported protocol: {srv.scheme} ")
return
Expand All @@ -538,7 +539,7 @@ def connect(self):

# Explain were we are connecting to:
print(f"Connecting to VSS server at {config['ip']} port {config['port']} \
using {'KUKSA GRPC' if config['protocol'] == 'grpc' else ' VISS' } protocol.")
using {'KUKSA GRPC' if config['protocol'] == 'grpc' else 'VISS' } protocol.")
print(f"TLS will {'not be' if config['insecure'] else 'be'} used.")

# Configs should only be added if they actually have a value
Expand Down

0 comments on commit 3b27221

Please sign in to comment.