Skip to content

Commit f691385

Browse files
committed
fix network to ignore the default core port from the connection string
1 parent 7f19b2d commit f691385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/network.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ bool network_compute_endpoints (sqlite3_context *context, network_data *data, co
369369
// 443 (OPTIONAL)
370370
rc = curl_url_get(url, CURLUPART_PORT, &port, 0);
371371
if (rc != CURLE_OK && rc != CURLUE_NO_PORT) goto finalize;
372-
char *port_or_default = port ? port : CLOUDSYNC_DEFAULT_ENDPOINT_PORT;
372+
char *port_or_default = port && strcmp(port, "8860") != 0 ? port : CLOUDSYNC_DEFAULT_ENDPOINT_PORT;
373373

374374
// /chinook.sqlite (MANDATORY)
375375
rc = curl_url_get(url, CURLUPART_PATH, &database, 0);

0 commit comments

Comments
 (0)