yagiz / Bagel

a little native network debugging tool for iOS
Apache License 2.0
4.35k stars 317 forks source link

Potential infinite loop in BagelBrowser #64

Open Shuab opened 3 years ago

Shuab commented 3 years ago

It seems like there's an easy possibility for an infinite loop at https://github.com/yagiz/Bagel/blob/master/iOS/Source/BagelBrowser.m#L90 if the first address does not connect successfully as addresses is never modified.

yufanghui commented 3 years ago

info.plist add below item solve my problem

<key>NSBonjourServices</key>
<array>
    <string>_Bagel._tcp</string>
</array>
NSLocalNetworkUsageDescription

<key>NSLocalNetworkUsageDescription</key>
<string>Network access required</string>