2014-02-10 10:12 GMT+01:00 Dash Four <mr.dash.f...@googlemail.com>:
>
>
> Arne Schwabe wrote:
>>>> Does lport 0 work?
>>>>
>>>>
>>> Yes. I use it (see my previous mail). But it is not documented in
>>> openVPN, and the use of a port value of 0 in bind() hardly. In the
>>> source the --lport value is sent to bind() directly, so it happens to
>>> work. It would be great if --lport 0 were mentioned in the manual, to
>>> avoid breaking this behavior in the future.
>>>
>>>
>>>
>> I might alread have broken this. I am not sure how getaddrinfo reacts to
>> "0" instead of NULL of servname.
>>
> So, can I use this undocumented option to allow the OS to determine a
> random port for me?
>
It works at least on version 2.2.1.

Mickael

Reply via email to