commit | c4e56bba6d2360051a113e65ba690f1d7040a2dd | [log] [tgz] |
---|---|---|
author | cjybyjk <cjybyjk@zjnu.edu.cn> | Sat Jul 03 05:32:37 2021 +0800 |
committer | cjybyjk <cjybyjk@zjnu.edu.cn> | Sat Jul 03 05:32:37 2021 +0800 |
tree | bba6936ee18ff5baa5624792859054dca37f9343 | |
parent | 8a4e14b0bbfbb3deb7319ec9b8b646bfe2d42ec5 [diff] |
use IP address as name if couldn't get hostname of client Signed-off-by: cjybyjk <cjybyjk@zjnu.edu.cn> Change-Id: Icec7fd938f7646ec1ff7f502816e0948ae973d24
diff --git a/app/src/main/java/org/exthmui/softap/SoftApManageService.java b/app/src/main/java/org/exthmui/softap/SoftApManageService.java index 46b577a..880774c 100644 --- a/app/src/main/java/org/exthmui/softap/SoftApManageService.java +++ b/app/src/main/java/org/exthmui/softap/SoftApManageService.java
@@ -304,7 +304,7 @@ InetAddress inetAddress = InetAddress.getByAddress(ipBuffer); client.setName(inetAddress.getHostName()); } catch (UnknownHostException e) { - // do nothing + client.setName(ips[0]); } }