Fix WebSocketServer allowed port range 42/38542/1
authorRyan Goulding <ryandgoulding@gmail.com>
Sun, 8 May 2016 00:43:09 +0000 (20:43 -0400)
committerRyan Goulding <ryandgoulding@gmail.com>
Sun, 8 May 2016 00:46:01 +0000 (20:46 -0400)
commit5c98e27c0680f45940fafdd92acf099361e8abf7
tree575c8814f3f4b6968cde017043b6b4ecabf2996e
parentf42e8a01848e66c2995ae1c74b2d98b6e1ed6084
Fix WebSocketServer allowed port range

Operating systems generally limit binding to ports below 1024 to
super users.  However, 1024 is fine for normal users.  This change
augments the precondition check to allow for port 1024 if it is
specified.

Change-Id: I876ff1694371e0c71b94806a6a1b7dbf3b27950f
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/streams/websockets/WebSocketServer.java