Commit b6f07df2 authored by Tobias's avatar Tobias

filter out own host name for http net services

parent 8d31ed4f
......@@ -135,6 +135,8 @@
@end
#import "VLCSharedLibraryParser.h"
#import "VLCHTTPUploaderController.h"
@interface VLCLocalNetworkServiceBrowserHTTP()
@property (nonatomic) VLCSharedLibraryParser *httpParser;
@end
......@@ -159,6 +161,11 @@
return _httpParser;
}
- (void)netServiceDidResolveAddress:(NSNetService *)sender {
NSString *ownHostname = [[VLCHTTPUploaderController sharedInstance] hostname];
if ([[sender hostName] rangeOfString:ownHostname].location != NSNotFound) {
return;
}
[self.httpParser checkNetserviceForVLCService:sender];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment