Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
joenghoyin committed Aug 31, 2023
1 parent 6b6c3b7 commit be4f1e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/tunneling/SecureTunnelingFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ namespace Aws
{
mServiceToPortMap["SSH"] = 22;
mServiceToPortMap["VNC"] = 5900;
mServiceToPortMap["GW"] = 8080;
mServiceToPortMap["TIVA"] = 502;
}

auto result = mServiceToPortMap.find(service);
Expand Down Expand Up @@ -213,7 +215,7 @@ namespace Aws
command += "TIVA=169.254.0.5:502";
} else {
LOG_INFO(TAG, "Trying to tunnel to the inverter by RS485.");
command += "TIVA=10.3.2.1:31337 | nc -l 10.3.2.1:31337 > /dev/ttymxc2 < /dev/ttymxc2";
command += "TIVA=10.3.2.1:502 | nc -l 10.3.2.1:502 > /dev/ttymxc2 < /dev/ttymxc2";
}
} else {
LOGM_ERROR(TAG, "Unexpected serviceId %s", service);
Expand Down

0 comments on commit be4f1e0

Please sign in to comment.