tinc 1.1pre4 on Win7x64 coughs on #comment in first line of host file
Guus Sliepen
guus at tinc-vpn.org
Mon Jan 14 11:23:23 CET 2013
On Sun, Jan 13, 2013 at 05:03:28PM -0600, Rob Townley wrote:
> I have the habit of putting the name of the host within the host file
> as a comment usually on the first line. Helps when files are renamed
> and tracking. The new version exports Name = victor and so the old
> comment style is not necessary. I would think the new version should
> still simply ignore lines that begin with the '#' character.
>
> For example, a normal host file named victor that also contains the
> following comment line:
> #victor
>
> tincctl --net=mynet import victor
>
> fails with "Junk at the beginning of the input, ignoring."
> The import hangs and does not seem to work.
The problem is not the comment at the start of the file, it's that the import
command does not take another argument. It expects the input on stdin. So, you
should write instead:
tincctl --net=mynet import < victor
Also, the import command only properly works for data generated by the export
command. If you feed it a raw host config file, it will not work. I'll clarify
the manual and have it print an error message when you add arguments after
"import" or "export".
--
Met vriendelijke groet / with kind regards,
Guus Sliepen <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20130114/510424b1/attachment.pgp>
More information about the tinc
mailing list