Skip to content

Commit

Permalink
Optimize obtaining local IP information
Browse files Browse the repository at this point in the history
  • Loading branch information
doleyzi committed Nov 27, 2023
1 parent a5faa34 commit 87ab3e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ bool SdkConfig::ParseConfig(const std::string &config_path) {

std::string err, local_ip;
if (GetLocalIPV4Address(err, local_ip)) {
local_ip = local_ip;
local_ip_ = local_ip;
} else {
local_ip = constants::kSerIP;
local_ip_ = constants::kSerIP;
}

OthersParam(doc);
Expand Down

0 comments on commit 87ab3e9

Please sign in to comment.