Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Closed Issue: ctor.:ForwardedPortRemote(uint,string,uint) fails [1173]

$
0
0
<p>public ForwardedPortRemote(uint boundPort, string host, uint port)</p>
<p> : this(string.Empty, boundPort, host, port)</p>
<p> {</p>
<p> }</p>
<p>&nbsp;</p>
<p>this(..) then runs:</p>
<p>&nbsp;</p>
<p> public ForwardedPortRemote(string boundHost, uint boundPort, string host, uint port)</p>
<p> {</p>
<p> if (boundHost == null)</p>
<p> throw new ArgumentNullException(&quot;boundHost&quot;);</p>
<p>&nbsp;</p>
<p> if (host == null)</p>
<p> throw new ArgumentNullException(&quot;host&quot;);</p>
<p>&nbsp;</p>
<p> if (!boundHost.IsValidHost()) &lt;---------------------------------- boundHost is string.Empty so this will throw.</p>
<p> throw new ArgumentException(&quot;boundHost&quot;);</p>
<p>&nbsp;</p>
<p> if (!boundPort.IsValidPort())</p>
<p> throw new ArgumentOutOfRangeException(&quot;boundPort&quot;);</p>
<p>&nbsp;</p>
<p> if (!host.IsValidHost())</p>
<p> throw new ArgumentException(&quot;host&quot;);</p>
<p>&nbsp;</p>
<p> if (!port.IsValidPort())</p>
<p> throw new ArgumentOutOfRangeException(&quot;port&quot;);</p>
<p>&nbsp;</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


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>