Skip to content

Commit

Permalink
fix for exitlag auto port command (bad escaping)
Browse files Browse the repository at this point in the history
  • Loading branch information
Herysia committed Mar 27, 2024
1 parent f53c651 commit 968eaff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "loa-details",
"version": "1.4.26",
"version": "1.4.27",
"description": "Damage meter for Lost Ark",
"productName": "LOA Details",
"author": "Herysia, Mathicha, Eren Kara <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src-electron/electron-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ let rawSocket = appSettings?.general?.useRawSocket;
let port = appSettings?.general?.listenPort ?? 6040;
if (appSettings?.general?.exitlagAutoport) {
const commandRet = execSync(
"powershell -Command \"& {$exitlagProcess = Get-Process | Where-Object { $_.ProcessName -eq 'exitlag' }; if ($exitlagProcess) { $netstatResult = Get-NetTCPConnection | Where-Object { $_.OwningProcess -eq $exitlagProcess.Id -and $_.LocalAddress -eq '127.0.0.1' -and $_.State -eq 'Listen' }; if ($netstatResult) { $port = $netstatResult.LocalPort; Write-Output ^\"$port^\" } else { Write-Output 'Port not found' } } else { Write-Output 'Process not found' }}",
"powershell -Command \"& {$exitlagProcess = Get-Process | Where-Object { $_.ProcessName -eq 'exitlag' }; if ($exitlagProcess) { $netstatResult = Get-NetTCPConnection | Where-Object { $_.OwningProcess -eq $exitlagProcess.Id -and $_.LocalAddress -eq '127.0.0.1' -and $_.State -eq 'Listen' }; if ($netstatResult) { $port = $netstatResult.LocalPort; Write-Output \"$port\" } else { Write-Output 'Port not found' } } else { Write-Output 'Process not found' }}\"",
{ encoding: "utf-8" }
);
console.info(
Expand Down
4 changes: 4 additions & 0 deletions src/pages/IndexPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
</p>

<h5>Changelog</h5>
<h6 id="1-4-27">1.4.27</h6>
<ul>
<li>Exitlag autoport fix</li>
</ul>
<h6 id="1-4-26">1.4.26</h6>
<ul>
<li>Support for game update - 27/03/2024 (Weekly maintenance)</li>
Expand Down

0 comments on commit 968eaff

Please sign in to comment.