Fix IPv6 usage on WatchOS.
This commit is contained in:
parent
e3256e7b4c
commit
66234ae253
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user