Ylianst / MeshCentralRouter

Windows tool that performs TCP/UDP port mapping thru the MeshCentral server
https://meshcentral.com
Apache License 2.0
53 stars 38 forks source link

Custom Application variable %N not working as intended. #52

Open b8two opened 1 year ago

b8two commented 1 year ago

MeshCentral Router Version 1.8.8231

When using the Custom Application option, the variable %N for Computer name expands to "xxx"

b8two commented 1 week ago

Still an issue with V 1.8.8795

b8two commented 1 week ago

MapUserControl.cs

foreach (String[] app in apps) { if (app[1].ToLower() == appIdStr.ToLower()) { appCmd = app[2]; if (app[3] != null) { appArgs = app[3].Replace("%P", mapper.localport.ToString()).Replace("%L", "127.0.0.1").Replace("%N", "xxx"); } } }

the xxx should be something like "node.name.ToString()" not static text "xxx".