Skip to content

Commit

Permalink
improved statshouse option parse (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
troy4eg authored Sep 27, 2023
1 parent a0d81f8 commit 5e4a947
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/php-engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2085,7 +2085,7 @@ int main_args_handler(int i, const char *long_option) {
}
auto host = std::string(optarg, colon - optarg);
auto port = atoi(colon + 1);
if (host.empty()) {
if (host.empty() || host == "localhost") {
host = "127.0.0.1";
}

Expand Down
2 changes: 1 addition & 1 deletion tests/python/tests/stats/test_statshouse_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def extra_class_setup(cls):
cls.statshouse.start()
cls.kphp_server.update_options({
"--workers-num": cls.WORKERS_NUM,
"--statshouse-client": ":" + str(cls.statshouse.port),
"--statshouse-client": "localhost:" + str(cls.statshouse.port),
})

@classmethod
Expand Down

0 comments on commit 5e4a947

Please sign in to comment.