浏览代码

修改dhcp租期

vothin 2 年之前
父节点
当前提交
8a0df12922
共有 3 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      jni/net/DhcpClient.cpp
  2. 二进制
      libs/armeabi/libzkgui.so
  3. 二进制
      obj/net/DhcpClient.o

+ 2 - 1
jni/net/DhcpClient.cpp

@@ -374,7 +374,8 @@ bool DhcpClient::start(const char *ip, const char *macaddr, const char *gateway)
 	macaddr_ = macaddr;
 	gateway_ = gateway;
 	record_time_ = get_sec();
-	lease_ = 60 * 60;    // 1 hour
+//	lease_ = 60 * 60;    // 1 hour
+	lease_ = 100;    // 100分钟
 	record_lease_ = 0;
 
 	LOGD("开始请求dhcp,ip == %s", ip);

二进制
libs/armeabi/libzkgui.so


二进制
obj/net/DhcpClient.o