Skip to content

Commit

Permalink
Fix IPv6 usage on WatchOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Jun 11, 2023
1 parent e3256e7 commit 66234ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions td/mtproto/RawConnection.cpp
Expand Up @@ -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();
}

Expand Down

0 comments on commit 66234ae

Please sign in to comment.