From c6a688d8ab154792dfef4f33ebebf5ce7f88f367 Mon Sep 17 00:00:00 2001 From: kulikov0 <19497634+kulikov0@users.noreply.github.com> Date: Tue, 9 Jun 2026 21:07:36 +0200 Subject: [PATCH] fix config race condition for wbstream in ios --- ios-proxy-app/strip-signing.sh | 12 ++++++++---- .../whitelist-bypass-proxy.xcodeproj/project.pbxproj | 6 ++++-- ios-proxy-app/whitelist-bypass-proxy/Info.plist | 2 -- relay/wbstream/session.go | 2 +- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/ios-proxy-app/strip-signing.sh b/ios-proxy-app/strip-signing.sh index e9ec325..57ed589 100755 --- a/ios-proxy-app/strip-signing.sh +++ b/ios-proxy-app/strip-signing.sh @@ -1,5 +1,9 @@ #!/bin/sh -# Removes Apple developer team ID from the Xcode project before committing. -# After cloning, re-select your team in Xcode: Signing & Capabilities > Team. -sed -i '' 's/DEVELOPMENT_TEAM = .*;/DEVELOPMENT_TEAM = "";/' whitelist-bypass-proxy.xcodeproj/project.pbxproj -echo "Stripped DEVELOPMENT_TEAM from project.pbxproj" +# Removes the Apple developer team ID and bundle identifier from the Xcode +# project before committing, so neither your team nor a fixed bundle ID is +# published. After cloning, set your own in Xcode: Signing & Capabilities > +# Team, and change the Bundle Identifier to a unique string. +PBXPROJ=whitelist-bypass-proxy.xcodeproj/project.pbxproj +sed -i '' 's/DEVELOPMENT_TEAM = .*;/DEVELOPMENT_TEAM = "";/' "$PBXPROJ" +sed -i '' 's/PRODUCT_BUNDLE_IDENTIFIER = .*;/PRODUCT_BUNDLE_IDENTIFIER = "com.example.whitelist-bypass-proxy";/' "$PBXPROJ" +echo "Stripped DEVELOPMENT_TEAM and PRODUCT_BUNDLE_IDENTIFIER from project.pbxproj" diff --git a/ios-proxy-app/whitelist-bypass-proxy.xcodeproj/project.pbxproj b/ios-proxy-app/whitelist-bypass-proxy.xcodeproj/project.pbxproj index a91288a..a180c29 100644 --- a/ios-proxy-app/whitelist-bypass-proxy.xcodeproj/project.pbxproj +++ b/ios-proxy-app/whitelist-bypass-proxy.xcodeproj/project.pbxproj @@ -295,6 +295,7 @@ ); GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "whitelist-bypass-proxy/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "Whitelist Bypass"; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; @@ -305,7 +306,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 0.3.5; - PRODUCT_BUNDLE_IDENTIFIER = "bypass.whitelist.whitelist-bypass-proxy"; + PRODUCT_BUNDLE_IDENTIFIER = "com.example.whitelist-bypass-proxy"; PRODUCT_NAME = "$(TARGET_NAME)"; STRING_CATALOG_GENERATE_SYMBOLS = YES; SWIFT_APPROACHABLE_CONCURRENCY = YES; @@ -332,6 +333,7 @@ ); GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "whitelist-bypass-proxy/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "Whitelist Bypass"; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; @@ -342,7 +344,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 0.3.5; - PRODUCT_BUNDLE_IDENTIFIER = "bypass.whitelist.whitelist-bypass-proxy"; + PRODUCT_BUNDLE_IDENTIFIER = "com.example.whitelist-bypass-proxy"; PRODUCT_NAME = "$(TARGET_NAME)"; STRING_CATALOG_GENERATE_SYMBOLS = YES; SWIFT_APPROACHABLE_CONCURRENCY = YES; diff --git a/ios-proxy-app/whitelist-bypass-proxy/Info.plist b/ios-proxy-app/whitelist-bypass-proxy/Info.plist index efba10f..f753731 100644 --- a/ios-proxy-app/whitelist-bypass-proxy/Info.plist +++ b/ios-proxy-app/whitelist-bypass-proxy/Info.plist @@ -2,8 +2,6 @@ - CFBundleDisplayName - Whitelist Bypass UIBackgroundModes audio diff --git a/relay/wbstream/session.go b/relay/wbstream/session.go index 1ca6a6c..ca17a4a 100644 --- a/relay/wbstream/session.go +++ b/relay/wbstream/session.go @@ -263,7 +263,7 @@ func (s *Session) startTunnel() { tun := s.vp8tun s.mu.Unlock() s.cfg.LogFn("[lk] vp8 tunnel writer started tracks=%d", len(subs)) - if s.cfg.IsJoiner { + if s.cfg.IsJoiner && s.cfg.TunnelMode != TunnelModeDC { go s.configPingPong(tun, len(subs)) }