Skip to content

Commit

Permalink
[VNC] fix a bug in macOS check port 5900 open method
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Apr 3, 2023
1 parent 7218310 commit 5ab3caa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/features/VNC.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2022 iCtrl Developers
# Copyright (c) 2021-2023 iCtrl Developers
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
Expand Down Expand Up @@ -78,7 +78,7 @@ def check_5900_open(self):

if result == '':
# possibly using mac
_, _, stdout, _ = self.exec_command_blocking('netstat -an | grep LISTEN | grep .5900')
_, _, stdout, _ = self.exec_command_blocking('netstat -an | grep LISTEN | grep "\.5900"')
result = stdout.readline()

return result != ''
Expand Down

0 comments on commit 5ab3caa

Please sign in to comment.