Skip to content

Commit 61ba9f0

Browse files
Potential fix for code scanning alert no. 9: Binding a socket to all network interfaces
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 010b358 commit 61ba9f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

snap7/s7commplus/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def get_db(self, db_number: int) -> Optional[DataBlock]:
258258
"""Get a registered data block."""
259259
return self._data_blocks.get(db_number)
260260

261-
def start(self, host: str = "0.0.0.0", port: int = 11020) -> None:
261+
def start(self, host: str = "127.0.0.1", port: int = 11020) -> None:
262262
"""Start the server.
263263
264264
Args:

0 commit comments

Comments
 (0)