Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: qyb <qiuyingbo@gmail.com>
  • Loading branch information
qyb committed Jul 1, 2022
1 parent eb6dc0d commit 790b3b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cassandane/Cassandane/GenericDaemon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ sub _is_listening_af
my ($self, $af) = @_;

my @cmd = (
'netstat',
(-e "/mnt/c/Windows/system32/netstat.exe") ? './utils/fakenetstat' : 'netstat',
'-l', # listening ports only
'-n', # numeric output
);
Expand Down
1 change: 1 addition & 0 deletions cassandane/utils/fakenetstat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/mnt/c/Windows/system32/netstat.exe -an | sed -e 's/LISTENING/LISTEN/' -e 's/ TCP/tcp 0 0/'

0 comments on commit 790b3b6

Please sign in to comment.