Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown key "host" in the config file? #6

Open
JoeF2023 opened this issue Apr 17, 2023 · 3 comments
Open

Unknown key "host" in the config file? #6

JoeF2023 opened this issue Apr 17, 2023 · 3 comments
Labels
question Further information is requested

Comments

@JoeF2023
Copy link

JoeF2023 commented Apr 17, 2023

Hi,

When trying to use host key as in your demo config I get the Unknown key "host" in the config file? error.

My config is as below, am I doing anything wrong? the net key to apply to the subnet seems to work fine.

[[host]]
# quick way to generate a static record for a static IP
"x.x.x.x" = "gw4.exapmle"
"x:x:x:x" = "gw6.example.com"
@Jamesits
Copy link
Owner

Please use [host] here. Note there is only one pair of square brackets.

In TOML, [[key]] defines an array. See: https://toml.io/en/v1.0.0#array-of-tables

@JoeF2023
Copy link
Author

Even with one set of square brackets it still generates the same error though?

@Jamesits Jamesits added the question Further information is requested label Apr 18, 2023
@Jamesits
Copy link
Owner

I still think this is an config file grammar issue. Is it possible that you post your whole configuration file here?

@Jamesits Jamesits reopened this Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants