Skip to content

Commit

Permalink
Only show local ports for debug service
Browse files Browse the repository at this point in the history
Signed-off-by: Seb Julliand <[email protected]>
  • Loading branch information
sebjulliand committed Apr 4, 2024
1 parent 01bbe4a commit 5bb4a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/debug/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export async function stopService(connection: IBMi) {
export async function getDebugServiceJob() {
const content = instance.getContent();
if (content) {
const rows = await content.runSQL(`select distinct job_name, local_port from qsys2.netstat_job_info j where job_name = (select job_name from qsys2.netstat_job_info j where local_port = ${content.ibmi.config?.debugPort || 8005} fetch first row only)`);
const rows = await content.runSQL(`select distinct job_name, local_port from qsys2.netstat_job_info j where job_name = (select job_name from qsys2.netstat_job_info j where local_port = ${content.ibmi.config?.debugPort || 8005} and remote_address = '0.0.0.0' fetch first row only)`);
if (rows && rows.length) {
return {
name: String(rows[0].JOB_NAME),
Expand Down

0 comments on commit 5bb4a36

Please sign in to comment.