Skip to content

Commit f453247

Browse files
committed
Fix host for ipv6
1 parent bafe950 commit f453247

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/tang/intellij/lua/debugger/emmyAttach/EmmyAttachDebugProcess.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class EmmyAttachDebugProcess(
4141
while (port > 0xffff) port -= 0xffff
4242
while (port < 0x400) port += 0x400
4343

44-
val transporter = SocketClientTransporter("localhost", port)
44+
val transporter = SocketClientTransporter("::1", port)
4545
transporter.handler = this
4646
transporter.logger = this
4747
this.transporter = transporter

src/main/java/com/tang/intellij/lua/debugger/emmyAttach/EmmyConfigAttachDebugProcess.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class EmmyConfigAttachDebugProcess(
7777
while (port > 0xffff) port -= 0xffff
7878
while (port < 0x400) port += 0x400
7979

80-
val transporter = SocketClientTransporter("localhost", port)
80+
val transporter = SocketClientTransporter("::1", port)
8181
transporter.handler = this
8282
transporter.logger = this
8383
this.transporter = transporter

0 commit comments

Comments
 (0)