Skip to content

Commit ea4c3aa

Browse files
committed
localhost -> self._host
1 parent 1522f7e commit ea4c3aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotly_resampler/figure_resampler/figure_resampler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def show_dash(
164164

165165
# check if self._port is already in use
166166
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
167-
if s.connect_ex(('localhost', int(self._port))) == 0:
167+
if s.connect_ex((self._host, int(self._port))) == 0:
168168
error_message = "Address already in use\n" \
169169
f"Port {self._port} is in use by another program. " \
170170
"Either identify and stop that program, or start the server with a different port."

0 commit comments

Comments
 (0)