Skip to content

Commit

Permalink
Merge pull request #123 from PepperlFuchs/fix/port
Browse files Browse the repository at this point in the history
use port declared in configuration to establish connection
  • Loading branch information
ptruka authored Feb 1, 2024
2 parents 16dd98c + c4542b8 commit 88bebcc
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 if (info_->port.compare("0") != 0)
{
query["port"] = info_->port;
}
auto resp = get_request("request_handle_tcp", { "handle", "port" }, query);

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

0 comments on commit 88bebcc

Please sign in to comment.