mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-01 20:42:01 +02:00
TCP connections: Only listen to localhost, not all interfaces
This commit is contained in:
parent
290798d774
commit
00d940fb86
4 changed files with 4 additions and 4 deletions
scenes
|
@ -10,7 +10,7 @@ var _client_connection
|
|||
func _ready():
|
||||
# Initialize TCP server for fake editor.
|
||||
_server = TCP_Server.new()
|
||||
_server.listen(1234)
|
||||
_server.listen(1234, "127.0.0.1")
|
||||
|
||||
func _process(_delta):
|
||||
if _server.is_connection_available():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue