<p>public ForwardedPortRemote(uint boundPort, string host, uint port)</p>
<p> : this(string.Empty, boundPort, host, port)</p>
<p> {</p>
<p> }</p>
<p> </p>
<p>this(..) then runs:</p>
<p> </p>
<p> public ForwardedPortRemote(string boundHost, uint boundPort, string host, uint port)</p>
<p> {</p>
<p> if (boundHost == null)</p>
<p> throw new ArgumentNullException("boundHost");</p>
<p> </p>
<p> if (host == null)</p>
<p> throw new ArgumentNullException("host");</p>
<p> </p>
<p> if (!boundHost.IsValidHost()) <---------------------------------- boundHost is string.Empty so this will throw.</p>
<p> throw new ArgumentException("boundHost");</p>
<p> </p>
<p> if (!boundPort.IsValidPort())</p>
<p> throw new ArgumentOutOfRangeException("boundPort");</p>
<p> </p>
<p> if (!host.IsValidHost())</p>
<p> throw new ArgumentException("host");</p>
<p> </p>
<p> if (!port.IsValidPort())</p>
<p> throw new ArgumentOutOfRangeException("port");</p>
<p> </p>
<p> this.BoundHost = boundHost;</p>
<p> this.BoundPort = boundPort;</p>
<p> this.Host = host;</p>
<p> this.Port = port;</p>
<p> }</p>
Comments:
<p> : this(string.Empty, boundPort, host, port)</p>
<p> {</p>
<p> }</p>
<p> </p>
<p>this(..) then runs:</p>
<p> </p>
<p> public ForwardedPortRemote(string boundHost, uint boundPort, string host, uint port)</p>
<p> {</p>
<p> if (boundHost == null)</p>
<p> throw new ArgumentNullException("boundHost");</p>
<p> </p>
<p> if (host == null)</p>
<p> throw new ArgumentNullException("host");</p>
<p> </p>
<p> if (!boundHost.IsValidHost()) <---------------------------------- boundHost is string.Empty so this will throw.</p>
<p> throw new ArgumentException("boundHost");</p>
<p> </p>
<p> if (!boundPort.IsValidPort())</p>
<p> throw new ArgumentOutOfRangeException("boundPort");</p>
<p> </p>
<p> if (!host.IsValidHost())</p>
<p> throw new ArgumentException("host");</p>
<p> </p>
<p> if (!port.IsValidPort())</p>
<p> throw new ArgumentOutOfRangeException("port");</p>
<p> </p>
<p> this.BoundHost = boundHost;</p>
<p> this.BoundPort = boundPort;</p>
<p> this.Host = host;</p>
<p> this.Port = port;</p>
<p> }</p>
Comments:
Was fixed in 16431 commit