Sync WoL ports with Android and Qt

This commit is contained in:
Cameron Gutman
2020-08-09 14:48:27 -07:00
parent 78600a4e06
commit 6f2041dfb6

View File

@@ -16,8 +16,12 @@
@implementation WakeOnLanManager @implementation WakeOnLanManager
static const int numPorts = 5; static const int numPorts = 7;
static const int ports[numPorts] = {7, 9, 47998, 47999, 48000}; static const int ports[numPorts] = {
9, // Standard WOL port (privileged port)
47998, 47999, 48000, 48002, 48010, // Ports opened by GFE
47009, // Port opened by Moonlight Internet Hosting Tool for WoL (non-privileged port)
};
+ (void) populateAddress:(struct sockaddr_storage*)addr withPort:(unsigned short)port { + (void) populateAddress:(struct sockaddr_storage*)addr withPort:(unsigned short)port {
if (addr->ss_family == AF_INET) { if (addr->ss_family == AF_INET) {