1. 23

I thought I’d post this (for the first time) as I’ve recently added IPv6 support, which was a much requested feature. Thanks for taking a look.

  1.  

  2. 2

    looks great. I wish the config was not done in JSON, which does not allow comments.

    1. 1

      Thanks!

      The reason the config file is in JSON is because it’s always written to programatically. I know it’s slightly annoying but I believe it’s a worthwhile compromise; when I wrote it I considered SQLite but settled on prettified JSON to allow the file to be tracked in git or similar.

      1. 1

        Fair, you could have opted for YAML or TOML which are also easy to write programatically, but also allow humans to edit them easily (including comments).

        Great project btw, I am going to play with it on a test server.

        1. 2

          Fair, you could have opted for YAML or TOML which are also easy to write programatically, but also allow humans to edit them easily (including comments).

          Sure, but I’m not aware of any serialiser that would retain the comments when writing the file.

          Great project btw, I am going to play with it on a test server.

          Thanks :)

          1. 2

            Sure, but I’m not aware of any serialiser that would retain the comments when writing the file.

            https://docs.rs/toml_edit/0.2.0/toml_edit/