Skip to content

Commit c1c5965

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/network.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Created by Marco Bambini on 12/12/24.
66
//
77

8-
#ifndef CLOUDSYNC_OMIT_NETWORK
8+
#ifndef CLOUDSYNC_OMIT_NETWORK_1
99

1010
#include <stdint.h>
1111
#include "network.h"
@@ -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)