Diff

Differences From Artifact [cb4bd3495c]:

To Artifact [fbafd07ddf]:


4603
4604
4605
4606
4607
4608
4609



4610
4611
4612
4613
4614
4615
4616
4617
		    } else {
			sprintf(buf, "Requesting remote port %d (forwarded to %s:%d)",
				sport, host, dport);
			logevent(buf);
			ssh2_pkt_init(SSH2_MSG_GLOBAL_REQUEST);
			ssh2_pkt_addstring("tcpip-forward");
			ssh2_pkt_addbool(1);/* want reply */



			ssh2_pkt_addstring("127.0.0.1");
			ssh2_pkt_adduint32(sport);
			ssh2_pkt_send();

			do {
			    crWaitUntilV(ispkt);
			    if (pktin.type == SSH2_MSG_CHANNEL_WINDOW_ADJUST) {
				unsigned i = ssh2_pkt_getuint32();







>
>
>
|







4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
		    } else {
			sprintf(buf, "Requesting remote port %d (forwarded to %s:%d)",
				sport, host, dport);
			logevent(buf);
			ssh2_pkt_init(SSH2_MSG_GLOBAL_REQUEST);
			ssh2_pkt_addstring("tcpip-forward");
			ssh2_pkt_addbool(1);/* want reply */
			if (cfg.rport_acceptall)
			    ssh2_pkt_addstring("0.0.0.0");
			else
			    ssh2_pkt_addstring("127.0.0.1");
			ssh2_pkt_adduint32(sport);
			ssh2_pkt_send();

			do {
			    crWaitUntilV(ispkt);
			    if (pktin.type == SSH2_MSG_CHANNEL_WINDOW_ADJUST) {
				unsigned i = ssh2_pkt_getuint32();