From 0f87d92f93eab87e66b1f9a364f9ecb60d1f6036 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 29 Sep 2016 20:48:17 +0200 Subject: [PATCH] [platform] fixes incorrect binding in mock update server --- .../src/main/java/com/intellij/updater/mock/Server.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update-server-mock/src/main/java/com/intellij/updater/mock/Server.kt b/update-server-mock/src/main/java/com/intellij/updater/mock/Server.kt index d2b0c1cfb236..9491a424b9b6 100644 --- a/update-server-mock/src/main/java/com/intellij/updater/mock/Server.kt +++ b/update-server-mock/src/main/java/com/intellij/updater/mock/Server.kt @@ -1,11 +1,11 @@ /* - * Copyright (c) 2016 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -30,7 +30,7 @@ class Server(private val port: Int, private val generator: Generator) { private val tsFormat = DateTimeFormatter.ofPattern("dd/MMM/yyyy:kk:mm:ss ZZ") fun start() { - server.bind(InetSocketAddress("localhost", port), 0) + server.bind(InetSocketAddress(port), 0) server.createContext("/") { ex -> val response = try {