Skip to content

Commit

Permalink
TUN 启动后再更新缓存地址
Browse files Browse the repository at this point in the history
  • Loading branch information
lanthora committed Dec 31, 2023
1 parent 2712ef8 commit ed68634
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ int Client::setWebSocketServer(const std::string &uri) {

int Client::setLocalAddress(const std::string &cidr) {
this->localAddress = cidr;

addressUpdateCallback(cidr);

return 0;
}

Expand Down Expand Up @@ -151,6 +148,9 @@ int Client::startTunThread() {
this->tunThread = std::thread([&] { this->handleTunMessage(); });

sendAuthMessage();

addressUpdateCallback(this->localAddress);

return 0;
}

Expand Down

0 comments on commit ed68634

Please sign in to comment.