mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-16 22:00:55 +00:00
Allow ENet to directly use the resolved address rather than doing DNS resolution itself
This commit is contained in:
+1
-1
Submodule enet updated: a602abf244...2bc07bb50d
+1
-4
@@ -624,10 +624,7 @@ int startControlStream(void) {
|
|||||||
ENetAddress address;
|
ENetAddress address;
|
||||||
ENetEvent event;
|
ENetEvent event;
|
||||||
|
|
||||||
// This will do DNS resolution if required
|
enet_address_set_address(&address, (struct sockaddr *)&RemoteAddr, RemoteAddrLen);
|
||||||
if (enet_address_set_host(&address, RemoteAddrString) < 0) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
enet_address_set_port(&address, 47999);
|
enet_address_set_port(&address, 47999);
|
||||||
|
|
||||||
// Create a client that can use 1 outgoing connection and 1 channel
|
// Create a client that can use 1 outgoing connection and 1 channel
|
||||||
|
|||||||
@@ -472,10 +472,7 @@ int performRtspHandshake(void) {
|
|||||||
ENetAddress address;
|
ENetAddress address;
|
||||||
ENetEvent event;
|
ENetEvent event;
|
||||||
|
|
||||||
// This will do DNS resolution if required
|
enet_address_set_address(&address, (struct sockaddr *)&RemoteAddr, RemoteAddrLen);
|
||||||
if (enet_address_set_host(&address, RemoteAddrString) < 0) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
enet_address_set_port(&address, 48010);
|
enet_address_set_port(&address, 48010);
|
||||||
|
|
||||||
// Create a client that can use 1 outgoing connection and 1 channel
|
// Create a client that can use 1 outgoing connection and 1 channel
|
||||||
|
|||||||
Reference in New Issue
Block a user