Skip to content

Commit

Permalink
Fixed serving on localhost only in the semihosting telnet server.
Browse files Browse the repository at this point in the history
- This was fixed for the gdbserver but telnet was missed.
  • Loading branch information
flit committed Dec 19, 2018
1 parent 89b7cd1 commit 8da5dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyocd/debug/semihost.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ def __init__(self, port_or_url, serve_local_only=True):
self._port = 0
else:
self._abstract_socket = GDBSocket(port_or_url, 4096)
self._abstract_socket.init()
self._port = self._abstract_socket.port
if serve_local_only:
self._abstract_socket.host = 'localhost'
self._abstract_socket.init()
self._port = self._abstract_socket.port
self._buffer = bytearray()
self._buffer_lock = threading.Lock()
self.connected = None
Expand Down

0 comments on commit 8da5dd6

Please sign in to comment.