validate the service host
All checks were successful
Publish Docker Image / docker (push) Successful in 1m10s

This commit is contained in:
Lee 2024-01-15 23:15:54 +00:00
parent e65d84c915
commit d37c414466

View File

@ -18,6 +18,11 @@ class AddCommand(Command):
if traefikConfig.hasRouter(name):
print(f"Router \"{name}\" already exists")
return
# Validate if the service host is a valid URL
if not serviceHost.startswith("http://") and not serviceHost.startswith("https://"):
print(f"Service host \"{serviceHost}\" is not a valid URL")
return
print(f"Adding \"{domain}\" -> \"{serviceHost}\"")