You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
Any progress here would be fine. Right now the code is not in sync with what it did before (and before is "strange" to say the least).
Now though I could not see gateways stored in the config.xml which had no router file... which at least makes deleting them impossible. So I added the elseif but forgot to unset the stale gateway value.
Then there's the dynamic thing, which used to be a placeholder for dynamic gateway that is even injected into the config.xml I think, but I can't double-check tonight since I'm away from home.
The reason will be displayed to describe this comment to others. Learn more.
@fichtner I'm not sure how to replicate the issue, but I do think I know what the issue is, let me prepare a fix by moving the line and let me know if it doesn't fix the issue you've seen before.
6adafe8There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fichtner this doesn't look right, if there was a "dynamic" in the config, we should probably remove the value above the last line in
core/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php
Lines 171 to 183 in 6adafe8
6adafe8There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any progress here would be fine. Right now the code is not in sync with what it did before (and before is "strange" to say the least).
Now though I could not see gateways stored in the config.xml which had no router file... which at least makes deleting them impossible. So I added the elseif but forgot to unset the stale gateway value.
Then there's the dynamic thing, which used to be a placeholder for dynamic gateway that is even injected into the config.xml I think, but I can't double-check tonight since I'm away from home.
Let me know what you need to debug this further.
6adafe8There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fichtner I'm not sure how to replicate the issue, but I do think I know what the issue is, let me prepare a fix by moving the line and let me know if it doesn't fix the issue you've seen before.
6adafe8There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fichtner my bad, now I seem to have misread the block. I'll revert my "fix"