mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-25 21:40:08 +00:00
trim whitespace from server info responses
This commit is contained in:
1 parent
fd9ee45dac
commit
f43c74d59b
3 files changed
+18
-5
No files matched your search
@@ -18,11 +18,11 @@
|
||||
}
|
||||
|
||||
- (void) populateHost:(Host*)host {
|
||||
host.name = [self getStringTag:TAG_HOSTNAME];
|
||||
host.externalAddress = [self getStringTag:TAG_EXTERNAL_IP];
|
||||
host.localAddress = [self getStringTag:TAG_LOCAL_IP];
|
||||
host.uuid = [self getStringTag:TAG_UNIQUE_ID];
|
||||
host.mac = [self getStringTag:TAG_MAC_ADDRESS];
|
||||
host.name = [[self getStringTag:TAG_HOSTNAME] trim];
|
||||
host.externalAddress = [[self getStringTag:TAG_EXTERNAL_IP] trim];
|
||||
host.localAddress = [[self getStringTag:TAG_LOCAL_IP] trim];
|
||||
host.uuid = [[self getStringTag:TAG_UNIQUE_ID] trim];
|
||||
host.mac = [[self getStringTag:TAG_MAC_ADDRESS] trim];
|
||||
|
||||
NSInteger pairStatus;
|
||||
if ([self getIntTag:TAG_PAIR_STATUS value:&pairStatus]) {
|
||||
|
||||
Reference in new issue
Block a user