Skip to content

Commit e69ee5a

Browse files
committed
apple: netplay udp lan discovery
1 parent 5fd3c01 commit e69ee5a

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

network/netplay/netplay_frontend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ static bool netplay_lan_ad_server(netplay_t *netplay)
648648
/* Send our response */
649649
sendto(net_st->lan_ad_server_fd,
650650
(char*)&ad_packet_buffer, sizeof(ad_packet_buffer), 0,
651-
(struct sockaddr*)&their_addr, sizeof(their_addr));
651+
(struct sockaddr*)&their_addr, addr_size);
652652
}
653653

654654
return true;

pkg/apple/iOS/RetroArchiOS.entitlements

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>com.apple.developer.networking.multicast</key>
6+
<true/>
57
<key>aps-environment</key>
68
<string>production</string>
79
<key>com.apple.developer.icloud-container-identifiers</key>

ui/drivers/cocoa/cocoa_common.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ - (void)webServerDidCompleteBonjourRegistration:(GCDWebServer*)server
820820
if (server.bonjourServerURL != nil)
821821
[servers appendString:[NSString stringWithFormat:@"%@",server.bonjourServerURL]];
822822

823-
#if TARGET_OS_TV || TARGET_OS_IOS
823+
#if TARGET_OS_TV && !TARGET_OS_IOS
824824
settings_t *settings = config_get_ptr();
825825
if (!settings->bools.gcdwebserver_alert)
826826
return;

0 commit comments

Comments
 (0)