Skip to content

Commit 8caa831

Browse files
committed
v1.0.4: Fixes an issue where discovery would fail on the default interface if it's routed to a VPN tunnel.
1 parent ee71778 commit 8caa831

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

Resources/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
<key>CFBundlePackageType</key>
3939
<string>APPL</string>
4040
<key>CFBundleShortVersionString</key>
41-
<string>1.0.3</string>
41+
<string>1.0.4</string>
4242
<key>CFBundleVersion</key>
43-
<string>5</string>
43+
<string>6</string>
4444
<key>LSApplicationCategoryType</key>
4545
<string>public.app-category.utilities</string>
4646
<key>LSMinimumSystemVersion</key>

SSDP Browser.xcodeproj/project.pbxproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@
292292
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
293293
GCC_WARN_UNUSED_FUNCTION = YES;
294294
GCC_WARN_UNUSED_VARIABLE = YES;
295-
MACOSX_DEPLOYMENT_TARGET = 10.13;
296295
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
297296
MTL_FAST_MATH = YES;
298297
ONLY_ACTIVE_ARCH = YES;
@@ -349,7 +348,6 @@
349348
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
350349
GCC_WARN_UNUSED_FUNCTION = YES;
351350
GCC_WARN_UNUSED_VARIABLE = YES;
352-
MACOSX_DEPLOYMENT_TARGET = 10.13;
353351
MTL_ENABLE_DEBUG_INFO = NO;
354352
MTL_FAST_MATH = YES;
355353
SDKROOT = macosx;

SSDPDiscovery.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ - (void) discoverServiceForDuration:(NSTimeInterval)duration searchTarget:(NSStr
132132
if (error) {
133133
[NSException raise:SSDPDiscoveryException format:@"bindToPort failed; %@", error];
134134
}
135+
if (useIP4) {
136+
// Apparently needed when using a VPN that routes all traffic thru the tunnel
137+
[socket sendIPv4MulticastOnInterface:interfaceForBind error:nil];
138+
} else {
139+
[socket sendIPv6MulticastOnInterface:interfaceForBind error:nil];
140+
}
135141
[socket beginReceiving:&error];
136142
if (error) {
137143
[NSException raise:SSDPDiscoveryException format:@"bindToPort failed; %@", error];

0 commit comments

Comments
 (0)