Skip to content

Commit 345071b

Browse files
committed
fix typo (#2995)
1 parent 1b24b31 commit 345071b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/init.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,15 +1666,15 @@ static void SetupRPCPorts(std::vector<std::string>& ethEndpoints, std::vector<st
16661666
}
16671667

16681668
// Determine which addresses to bind to ocean server
1669-
int ocean_port = gArgs.GetArg("-oceanarchiveport", BaseParams().WSPort());
1669+
int ocean_port = gArgs.GetArg("-oceanarchiveport", DEFAULT_OCEAN_ARCHIVE_PORT);
16701670
if (ocean_port == -1) {
1671-
LogPrintf("Websocket server disabled.\n");
1671+
LogPrintf("Ocean server disabled.\n");
16721672
} else {
16731673
if (setAutoPort) {
16741674
ocean_port = 0;
16751675
}
16761676
if (!(gArgs.IsArgSet("-rpcallowip") && gArgs.IsArgSet("-oceanarchivebind"))) { // Default to loopback if not allowing external IPs
1677-
auto endpoint = default_address + ":" + std::to_string(ws_port);
1677+
auto endpoint = default_address + ":" + std::to_string(ocean_port);
16781678
oceanEndpoints.push_back(endpoint);
16791679
if (gArgs.IsArgSet("-rpcallowip")) {
16801680
LogPrintf("WARNING: option -rpcallowip was specified without -oceanarchivebind; this doesn't usually make sense\n");
@@ -1683,10 +1683,10 @@ static void SetupRPCPorts(std::vector<std::string>& ethEndpoints, std::vector<st
16831683
LogPrintf("WARNING: option -oceanarchivebind was ignored because -rpcallowip was not specified, refusing to allow everyone to connect\n");
16841684
}
16851685
} else if (gArgs.IsArgSet("-oceanarchivebind")) { // Specific bind address
1686-
for (const std::string& strWSBind : gArgs.GetArgs("-oceanarchivebind")) {
1687-
int port = ws_port;
1686+
for (const std::string& strOCEANBind : gArgs.GetArgs("-oceanarchivebind")) {
1687+
int port = ocean_port;
16881688
std::string host;
1689-
SplitHostPort(strWSBind, port, host);
1689+
SplitHostPort(strOCEANBind, port, host);
16901690
auto endpoint = host + ":" + std::to_string(port);
16911691
oceanEndpoints.push_back(endpoint);
16921692
}

0 commit comments

Comments
 (0)