try to fix invalid MAC issue that happens in some cases
This commit is contained in:
1 parent
7a55fee258
commit
bf1a30505f
2 files changed
+9
-5
No files matched your search
@@ -20,7 +20,12 @@
|
||||
- (void) populateHost:(TemporaryHost*)host {
|
||||
host.name = [[self getStringTag:TAG_HOSTNAME] trim];
|
||||
host.uuid = [[self getStringTag:TAG_UNIQUE_ID] trim];
|
||||
host.mac = [[self getStringTag:TAG_MAC_ADDRESS] trim];
|
||||
|
||||
|
||||
// try to fix invalid mac happens in some cases
|
||||
NSString* tmpMac = [[self getStringTag:TAG_MAC_ADDRESS] trim];
|
||||
if (!(tmpMac == nil || [tmpMac isEqualToString:@"00:00:00:00:00:00"])) host.mac = tmpMac;
|
||||
|
||||
host.currentGame = [[self getStringTag:TAG_CURRENT_GAME] trim];
|
||||
|
||||
NSInteger httpsPort;
|
||||
|
||||
Reference in new issue
Block a user