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

system: Handle empty DNS server gateway #6462

Merged

Conversation

n-thumann
Copy link
Contributor

@n-thumann n-thumann commented Mar 31, 2023

This PR fixes adds handling for empty DNS server gateway to fix /system_general.php: ROUTING: not a valid host gateway address: ''.

In System -> Settings -> General a user can optionally set a gateway for each DNS server. However, if no gateway is set for a DNS server the error above is thrown. This is caused by system_host_route being always called, even though there is no gateway set. If none is set, there's no need to setup a static route.

@fichtner fichtner merged commit 96120d6 into opnsense:master Apr 1, 2023
@fichtner
Copy link
Member

fichtner commented Apr 1, 2023

Merged, thanks!

@fichtner fichtner self-assigned this Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants