style: 🚸 remove -h flag conflicting with help

This commit is contained in:
Nate Sesti 2023-09-07 11:23:25 -07:00
parent 65887473f4
commit d18cb9b12a
2 changed files with 6 additions and 2 deletions

View file

@ -63,7 +63,7 @@ if __name__ == "__main__":
"-p", "--port", help="server port", type=int, default=65432
)
parser.add_argument(
"-h", "--host", help="server host", type=str, default="127.0.0.1"
"--host", help="server host", type=str, default="127.0.0.1"
)
args = parser.parse_args()
except Exception as e:

View file

@ -194,7 +194,11 @@ export async function startContinuePythonServer(redownload: boolean = true) {
.getConfiguration("continue")
.get<boolean>("manuallyRunningServer") || false;
const serverUrl = getContinueServerUrl();
if (serverUrl !== "http://localhost:65432" || manuallyRunningServer) {
if (
(serverUrl !== "http://localhost:65432" &&
serverUrl !== "http://127.0.0.1:65432") ||
manuallyRunningServer
) {
console.log("Continue server is being run manually, skipping start");
return;
}