1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

port juggling

This commit is contained in:
dan 2023-03-08 15:22:11 -08:00
parent 9e661bd940
commit cae52fd3b5
2 changed files with 4 additions and 4 deletions

View file

@ -44,10 +44,10 @@ namespace llarp::quic
// to try: set ports to 0
Path path{
Address{SockAddr{"::1"sv, huint16_t{0}}, std::nullopt},
Address{SockAddr{"::1"sv, huint16_t{0}}, std::move(remote)}};
Address{SockAddr{"::1"sv, huint16_t{port}}, std::move(remote)}};
log::debug(logcat, "Connecting to {} with addr_variant {}", path.remote, *path.remote.endpoint);
log::debug(logcat, "psuedo_port = {}, port = {} at {}", pseudo_port, port, __LINE__);
log::debug(logcat, "pseudo_port = {}, port = {} at {}", pseudo_port, port, __LINE__);
auto conn = std::make_shared<Connection>(*this, ConnectionID::random(), std::move(path), port);

View file

@ -755,8 +755,8 @@ namespace llarp::quic
pseudo_port,
__LINE__);
// to try: set remote_port to 0
remote_port = huint16_t{0};
// to try: set port to 0
//remote_port = huint16_t{0};
pseudo_port = 0;
auto remote_addr = Address{SockAddr{"::1"sv, remote_port}, std::move(remote)};