这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@joshuasign
Copy link
Contributor

@joshuasign joshuasign commented Jan 21, 2019

Copy link
Contributor

@jim-p jim-p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the idea of a free-form text field for this, especially not on a page that only contains basic options.

Ideally, it should be separated out into GUI knobs for each possible option, or it needs to be moved somewhere under Advanced options.

@joshuasign
Copy link
Contributor Author

I agree with you, the place to be for this is in "Advanced options",
As far as users know what they are doing in "Advanced options", there is no problem for me to use free-form.

Even if we can be exhaustive in the options we purpose by this feature, it will make it very hard to manage and maintain.
Thats why i try to do something very simple (sometimes the less is the best).

@joshuasign
Copy link
Contributor Author

Switched to "Advanced options Network" page.
Link to man page added.

Copy link
Member

@rbgarga rbgarga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

system_resolvconf_generate() must be called when the content of $config['system']['resolvconfoptions'] changes, otherwise the items will not be added to resolv.conf when user click Save

}

// Add options
if (isset($config['system']['resolvconfoptions']) && !empty($config['system']['resolvconfoptions'])) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty() already checks if variable is set, you can remove isset() call from here

unset($config['system']['resolvconfoptions']);
}


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not add lines with only spaces like 182 and 183

$config['system']['resolvconfoptions'] = base64_encode(trim($_POST['resolvconfoptions']));
} else {
unset($config['system']['resolvconfoptions']);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block indentation is wrong. Please use hard tabs with size 8

@rbgarga
Copy link
Member

rbgarga commented Sep 8, 2020

Closing after almost one year with no activity. @joshuasign if you want to work on this change again please re-submit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants