Przeglądaj źródła

VLCHTTPUploaderController: change standard port to 8080 to avoid Chromecast conflicts

Carola Nitz 7 lat temu
rodzic
commit
a3b4797e93
1 zmienionych plików z 6 dodań i 12 usunięć
  1. 6 12
      Sources/VLCHTTPUploaderController.m

+ 6 - 12
Sources/VLCHTTPUploaderController.m

@@ -102,17 +102,11 @@
 - (NSString *)httpStatus
 {
     if (_httpServer.isRunning) {
-        if (_httpServer.listeningPort != 80) {
-            return [NSString stringWithFormat:@"http://%@:%i\nhttp://%@:%i",
-                    [self hostname],
-                    _httpServer.listeningPort,
-                    [self currentIPAddress],
-                    _httpServer.listeningPort];
-        } else {
-            return [NSString stringWithFormat:@"http://%@\nhttp://%@",
-                    [self hostname],
-                    [self currentIPAddress]];
-        }
+        return [NSString stringWithFormat:@"http://%@:%i\nhttp://%@:%i",
+                [self hostname],
+                _httpServer.listeningPort,
+                [self currentIPAddress],
+                _httpServer.listeningPort];
     } else {
         return NSLocalizedString(@"HTTP_UPLOAD_SERVER_OFF", nil);
     }
@@ -216,7 +210,7 @@
     APLog(@"Setting document root: %@", docRoot);
 
     [_httpServer setDocumentRoot:docRoot];
-    [_httpServer setPort:80];
+    [_httpServer setPort:8080];
 
     [_httpServer setConnectionClass:[VLCHTTPConnection class]];