Skip to content

Commit 5bb4a36

Browse files
committed
Only show local ports for debug service
Signed-off-by: Seb Julliand <[email protected]>
1 parent 01bbe4a commit 5bb4a36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/debug/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export async function stopService(connection: IBMi) {
158158
export async function getDebugServiceJob() {
159159
const content = instance.getContent();
160160
if (content) {
161-
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)`);
161+
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)`);
162162
if (rows && rows.length) {
163163
return {
164164
name: String(rows[0].JOB_NAME),

0 commit comments

Comments
 (0)