mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-06 12:08:41 +00:00
refactor(main): move map_port to network (#2115)
This commit is contained in:
1 parent
d91e2c9ecb
commit
1c50bc502b
12 files changed
+64
-61
No files matched your search
+3
-3
@@ -1600,9 +1600,9 @@ namespace stream {
|
||||
start_broadcast(broadcast_ctx_t &ctx) {
|
||||
auto address_family = net::af_from_enum_string(config::sunshine.address_family);
|
||||
auto protocol = address_family == net::IPV4 ? udp::v4() : udp::v6();
|
||||
auto control_port = map_port(CONTROL_PORT);
|
||||
auto video_port = map_port(VIDEO_STREAM_PORT);
|
||||
auto audio_port = map_port(AUDIO_STREAM_PORT);
|
||||
auto control_port = net::map_port(CONTROL_PORT);
|
||||
auto video_port = net::map_port(VIDEO_STREAM_PORT);
|
||||
auto audio_port = net::map_port(AUDIO_STREAM_PORT);
|
||||
|
||||
if (ctx.control_server.bind(address_family, control_port)) {
|
||||
BOOST_LOG(error) << "Couldn't bind Control server to port ["sv << control_port << "], likely another process already bound to the port"sv;
|
||||
|
||||
Reference in new issue
Block a user