Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/pinus/lib/util/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ export function checkPort(app: Application, server: ServerInfo, cb: (result: str
ssh_params = '';
}
if (!isLocal(host)) {
cmd = util.format('ssh %s %s "netstat -an|awk \'{print $4}\'|grep %s|wc -l"', host, ssh_params, port);
cmd = util.format('ssh %s %s "netstat -tlnp|awk \'{print $4}\'|grep %s|wc -l"', host, ssh_params, port);
} else {
cmd = util.format('netstat -an|awk \'{print $4}\'|grep %s|wc -l', port);
cmd = util.format('netstat -tlnp|awk \'{print $4}\'|grep %s|wc -l', port);
}
return cmd;
};
Expand Down Expand Up @@ -362,4 +362,4 @@ export function extendsObject(origin: any, add: any) {
return origin;
}

export let promisify = util.promisify;
export let promisify = util.promisify;