Disable UI if it's not compiled in. (#5773)
* Disable UI if it's not compiled in. * Properly enabled/disable ui server depending on features.
This commit is contained in:
@@ -1036,7 +1036,7 @@ impl Configuration {
|
||||
self.args.flag_geth ||
|
||||
self.args.flag_no_ui;
|
||||
|
||||
!ui_disabled
|
||||
!ui_disabled && cfg!(feature = "ui-enabled")
|
||||
}
|
||||
|
||||
fn verifier_settings(&self) -> VerifierSettings {
|
||||
|
||||
@@ -102,7 +102,7 @@ impl From<UiConfiguration> for HttpConfiguration {
|
||||
impl Default for UiConfiguration {
|
||||
fn default() -> Self {
|
||||
UiConfiguration {
|
||||
enabled: true,
|
||||
enabled: true && cfg!(feature = "ui-enabled"),
|
||||
port: 8180,
|
||||
interface: "127.0.0.1".into(),
|
||||
hosts: Some(vec![]),
|
||||
|
||||
Reference in New Issue
Block a user