Fix IPv6 usage on WatchOS.

This commit is contained in:
levlam 2023-06-11 13:25:06 +03:00
parent e3256e7b4c
commit 66234ae253

View File

@ -460,8 +460,8 @@ class RawConnectionHttp final : public RawConnection {
}
Status do_send(Slice data) {
DarwinHttp::post(PSLICE() << "http://" << ip_address_.get_ip_str() << ":" << ip_address_.get_port() << "/api", data,
[answers = answers_](auto res) { answers->writer_put(std::move(res)); });
DarwinHttp::post(PSLICE() << "http://" << ip_address_.get_ip_host() << ":" << ip_address_.get_port() << "/api",
data, [answers = answers_](auto res) { answers->writer_put(std::move(res)); });
return Status::OK();
}