[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -n flag does not work



On 04/07/14 08:41, Peter Pentchev wrote:
> On Mon, Apr 07, 2014 at 03:15:12PM +0200, Edgars M. wrote:
>> Hi
>> 
>> It looks like -n flag does not work when I create socket on server:
>> 
>> /usr/local/bin/spiped -d -s '[0.0.0.0]:1081' -t '[10.10.1.20]:1080' -k 
>> ~/danteproxy.key -n 1000 usage: spiped {-e | -d} -s <source socket> -t
>> <target socket> -k <key file> [-DfFj] [-n <max # connections>] [-o
>> <connection timeout>] [-p <pidfile>] [{-r <rtime> | -R}]
>> 
>> OS: CentOS 6.5 x86_64 spiped: 1.3.1
>> 
>> Am I missing something?
> 
> In the source code there is a check that the parameter to the -n option 
> should be more than 0 and less than 500.  This does not seem to be 
> documented in the manual page or in the usage message :)  But that's the
> reason for your troubles.  Try with 500, things should work better.

Good catch, I've added this to the man page and added an error message
for out-of-range -n parameters to replace the usage message.

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid