refactor(main): move map_port to network (#2115)

This commit is contained in:
ReenigneArcher
2024-02-09 09:15:47 -05:00
committed by GitHub
parent d91e2c9ecb
commit 1c50bc502b
12 changed files with 64 additions and 61 deletions

View File

@@ -8,7 +8,7 @@
#include "misc.h"
#include "src/logging.h"
#include "src/main.h"
#include "src/network.h"
#include "src/nvhttp.h"
#include "src/platform/common.h"
#include "src/utility.h"
@@ -349,7 +349,7 @@ namespace platf::publish {
name.get(),
SERVICE_TYPE,
nullptr, nullptr,
map_port(nvhttp::PORT_HTTP),
net::map_port(nvhttp::PORT_HTTP),
nullptr);
if (ret < 0) {

View File

@@ -8,7 +8,7 @@
#include "misc.h"
#include "src/logging.h"
#include "src/main.h"
#include "src/network.h"
#include "src/nvhttp.h"
#include "src/platform/common.h"
#include "src/utility.h"
@@ -349,7 +349,7 @@ namespace platf::publish {
name.get(),
SERVICE_TYPE,
nullptr, nullptr,
map_port(nvhttp::PORT_HTTP),
net::map_port(nvhttp::PORT_HTTP),
nullptr);
if (ret < 0) {

View File

@@ -117,7 +117,7 @@ namespace platf::publish {
DNS_SERVICE_INSTANCE instance {};
instance.pszInstanceName = name.data();
instance.wPort = map_port(nvhttp::PORT_HTTP);
instance.wPort = net::map_port(nvhttp::PORT_HTTP);
instance.pszHostName = host.data();
// Setting these values ensures Windows mDNS answers comply with RFC 1035.