| 23 | } |
| 24 | |
| 25 | void THttpServerOptions::BindAddresses(TBindAddresses& ret) const { |
| 26 | THashSet<TString> check; |
| 27 | |
| 28 | for (auto addr : BindSockaddr) { |
| 29 | if (!addr.Port) { |
| 30 | addr.Port = Port; |
| 31 | } |
| 32 | |
| 33 | const TString straddr = AddrToString(addr); |
| 34 | |
| 35 | if (check.find(straddr) == check.end()) { |
| 36 | check.insert(straddr); |
| 37 | ret.push_back(ToNetworkAddr(addr.Addr, addr.Port)); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | if (ret.empty()) { |
| 42 | ret.push_back(Host ? TNetworkAddress(Host, Port) : TNetworkAddress(Port)); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | void THttpServerOptions::DebugPrint(IOutputStream& stream) const noexcept { |
| 47 | stream << "Port: " << Port << "\n"; |
no test coverage detected