Parcourir la source

WiFi Sharing: turn-off IPv6 support by default to improve reliability on local networks

IPv6 support is still available as an option

Note that this use a new API introduced to our custom CocoaHTTPServer fork

Thanks to Antonio Valieri for pointing this out
Felix Paul Kühne il y a 10 ans
Parent
commit
3ad4ad20b6

+ 10 - 0
Resources/Settings.bundle/Root.inApp.plist

@@ -411,6 +411,16 @@
 			<string>SETTINGS_FILE_SYNC</string>
 		</dict>
 		<dict>
+			<key>DefaultValue</key>
+			<false/>
+			<key>Key</key>
+			<string>wifi-sharing-ipv6</string>
+			<key>Title</key>
+			<string>SETTINGS_WIFISHARING_IPv6</string>
+			<key>Type</key>
+			<string>PSToggleSwitchSpecifier</string>
+		</dict>
+		<dict>
 			<key>Type</key>
 			<string>PSMultiValueSpecifier</string>
 			<key>Titles</key>

+ 10 - 0
Resources/Settings.bundle/Root.plist

@@ -401,6 +401,16 @@
 			<string>SETTINGS_FILE_SYNC</string>
 		</dict>
 		<dict>
+			<key>DefaultValue</key>
+			<false/>
+			<key>Key</key>
+			<string>wifi-sharing-ipv6</string>
+			<key>Title</key>
+			<string>SETTINGS_WIFISHARING_IPv6</string>
+			<key>Type</key>
+			<string>PSToggleSwitchSpecifier</string>
+		</dict>
+		<dict>
 			<key>Type</key>
 			<string>PSMultiValueSpecifier</string>
 			<key>Titles</key>

BIN
Resources/Settings.bundle/en.lproj/Root.strings


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
Sources/VLCAppDelegate.m


+ 3 - 1
Sources/VLCConstants.h

@@ -2,7 +2,7 @@
  * VLCConstants.h
  * VLC for iOS
  *****************************************************************************
- * Copyright (c) 2013-2014 VideoLAN. All rights reserved.
+ * Copyright (c) 2013-2015 VideoLAN. All rights reserved.
  * $Id$
  *
  * Authors: Felix Paul Kühne <fkuehne # videolan.org>
@@ -44,6 +44,8 @@
 #define kVLCSettingFTPTextEncoding @"ftp-text-encoding"
 #define kVLCSettingFTPTextEncodingDefaultValue @(5) // ISO Latin 1
 #define kVLCSettingPlaybackSpeedDefaultValue @"playback-speed"
+#define kVLCSettingWiFiSharingIPv6 @"wifi-sharing-ipv6"
+#define kVLCSettingWiFiSharingIPv6DefaultValue @(NO)
 
 #define kVLCShowRemainingTime @"show-remaining-time"
 #define kVLCRecentURLs @"recent-urls"

+ 4 - 1
Sources/VLCHTTPUploaderController.m

@@ -2,7 +2,7 @@
  * VLCHTTPUploaderViewController.m
  * VLC for iOS
  *****************************************************************************
- * Copyright (c) 2013 VideoLAN. All rights reserved.
+ * Copyright (c) 2013-2015 VideoLAN. All rights reserved.
  * $Id$
  *
  * Authors: Jean-Baptiste Kempf <jb # videolan.org>
@@ -82,6 +82,9 @@
     _httpServer = [[HTTPServer alloc] init];
     [_httpServer setInterface:WifiInterfaceName];
 
+    [_httpServer setIPv4Enabled:YES];
+    [_httpServer setIPv6Enabled:[[[NSUserDefaults standardUserDefaults] objectForKey:kVLCSettingWiFiSharingIPv6] boolValue]];
+
     // Tell the server to broadcast its presence via Bonjour.
     // This allows browsers such as Safari to automatically discover our service.
     [self.httpServer setType:@"_http._tcp."];