Skip to content

Commit

Permalink
use port declared in configuration to establish connection
Browse files Browse the repository at this point in the history
  • Loading branch information
hsd-dev committed Jan 11, 2024
1 parent 16dd98c commit 7d4df9c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pf_driver/src/pf/pfsdp_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ void PFSDPBase::request_handle_tcp(const std::string& port, const std::string& p
{
query["packet_type"] = config_->packet_type;
}
if (!port.empty())
{
query["port"] = port;
}
else
{
query["port"] = info_->port;
}
auto resp = get_request("request_handle_tcp", { "handle", "port" }, query);

info_->handle = resp["handle"];
Expand Down

0 comments on commit 7d4df9c

Please sign in to comment.