Yang model fixed
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / core / PublishingChannelInitializer.java
index 1fd9cb9c973fc27eb1a7e3daa957a6d73f6d7fed..b38856addaa4716ba67771d4d64206cb9c519096 100644 (file)
@@ -47,7 +47,8 @@ public class PublishingChannelInitializer extends ChannelInitializer<SocketChann
     @Override
     protected void initChannel(SocketChannel ch) {
         InetAddress switchAddress = ch.remoteAddress().getAddress();
-        LOGGER.info("Incoming connection from (remote address): " + switchAddress.toString());
+        int port = ch.localAddress().getPort();
+        LOGGER.info("Incoming connection from (remote address): " + switchAddress.toString() + ":" + port);
         if (!switchConnectionHandler.accept(switchAddress)) {
             ch.disconnect();
             LOGGER.info("Incoming connection rejected");