Skip to content

Commit

Permalink
force binding to localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bast committed Apr 20, 2021
1 parent 3f9e3fb commit 0d70289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eclair-core/src/test/scala/fr/acinq/eclair/io/PeerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class PeerSpec extends TestKitBaseClass with FixtureAnyFunSuiteLike with Paralle

// we create a dummy tcp server and update bob's announcement to point to it
val mockServer = ServerSocketChannel.open()
mockServer.bind(new InetSocketAddress("::1", 0))
mockServer.bind(new InetSocketAddress("localhost", 0))
mockServer.configureBlocking(false)
val serverAddress = mockServer.getLocalAddress.asInstanceOf[InetSocketAddress]
println(s"bound to $serverAddress")
Expand All @@ -139,7 +139,7 @@ class PeerSpec extends TestKitBaseClass with FixtureAnyFunSuiteLike with Paralle

// we create a dummy tcp server and update bob's announcement to point to it
val mockServer = ServerSocketChannel.open()
mockServer.bind(new InetSocketAddress("::1", 0))
mockServer.bind(new InetSocketAddress("localhost", 0))
mockServer.configureBlocking(false)
val serverAddress = mockServer.getLocalAddress.asInstanceOf[InetSocketAddress]
println(s"bound to $serverAddress")
Expand Down

0 comments on commit 0d70289

Please sign in to comment.