diff --git a/src/main/java/com/tang/intellij/lua/debugger/emmyAttach/EmmyAttachDebugProcess.kt b/src/main/java/com/tang/intellij/lua/debugger/emmyAttach/EmmyAttachDebugProcess.kt index 9535ef5..acad982 100644 --- a/src/main/java/com/tang/intellij/lua/debugger/emmyAttach/EmmyAttachDebugProcess.kt +++ b/src/main/java/com/tang/intellij/lua/debugger/emmyAttach/EmmyAttachDebugProcess.kt @@ -41,7 +41,7 @@ class EmmyAttachDebugProcess( while (port > 0xffff) port -= 0xffff while (port < 0x400) port += 0x400 - val transporter = SocketClientTransporter("localhost", port) + val transporter = SocketClientTransporter("::1", port) transporter.handler = this transporter.logger = this this.transporter = transporter diff --git a/src/main/java/com/tang/intellij/lua/debugger/emmyAttach/EmmyConfigAttachDebugProcess.kt b/src/main/java/com/tang/intellij/lua/debugger/emmyAttach/EmmyConfigAttachDebugProcess.kt index a7282be..21f3c67 100644 --- a/src/main/java/com/tang/intellij/lua/debugger/emmyAttach/EmmyConfigAttachDebugProcess.kt +++ b/src/main/java/com/tang/intellij/lua/debugger/emmyAttach/EmmyConfigAttachDebugProcess.kt @@ -77,7 +77,7 @@ class EmmyConfigAttachDebugProcess( while (port > 0xffff) port -= 0xffff while (port < 0x400) port += 0x400 - val transporter = SocketClientTransporter("localhost", port) + val transporter = SocketClientTransporter("::1", port) transporter.handler = this transporter.logger = this this.transporter = transporter