We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b15dae1 commit db7b3abCopy full SHA for db7b3ab
plugins/slicer/MONAILabel/MONAILabel.py
@@ -1059,6 +1059,10 @@ def serverUrl(self):
1059
serverUrl = self.ui.serverComboBox.currentText.strip()
1060
if not serverUrl:
1061
serverUrl = "http://127.0.0.1:8000"
1062
+ elif not serverUrl.startswith(("http://", "https://")):
1063
+ serverUrl = "http://" + serverUrl
1064
+ elif serverUrl.startswith(":") or serverUrl.isdigit():
1065
+ serverUrl = "http://0.0.0.0:" + serverUrl.lstrip(":")
1066
return serverUrl.rstrip("/")
1067
1068
def saveServerUrl(self):
0 commit comments