On Mon, 27 Aug 2018, Tuomo Soini wrote:

        leftsubnets={10.0.2.0/24, 10.0.1.0/24}
        rightsubnets={192.168.0.0/24, 192.168.100.0/24}
        [...]

I'd suggest removing use of {} from all examples and just remove
spaces, using format leftsubnets=10.0.2.0/24,10.0.1.0/24

I'm fine with removing the {} and keeping it simpler with one format.
It does need to be tolerant of spaces though and remove them. Like
a strtok() allowing both comma or space as seperator.

(I believe left starts at 0 and right starts at 1 for unknown reasons)

0 is used when there is *subnet=, 1 is used as start if *subnets= is
used.

Ahh, I didn't realise that was it :)

Paul
_______________________________________________
Swan-dev mailing list
Swan-dev@lists.libreswan.org
https://lists.libreswan.org/mailman/listinfo/swan-dev

Reply via email to