Skip to content

fix(config): replace external.ip=null with empty string#86

Open
vividctrlalt wants to merge 1 commit intotronprotocol:mainfrom
vividctrlalt:fix/replace-null-config-values
Open

fix(config): replace external.ip=null with empty string#86
vividctrlalt wants to merge 1 commit intotronprotocol:mainfrom
vividctrlalt:fix/replace-null-config-values

Conversation

@vividctrlalt
Copy link
Copy Markdown

What

Replace external.ip = null with external.ip = "" in 3 test config files.

Why

HOCON null values cannot be bound by ConfigBeanFactory to String fields.
Using empty string instead has the same runtime effect — it triggers the automatic
IP detection fallback in java-tron. This avoids ConfigException$Null when
java-tron adopts ConfigBeanFactory for config binding.

Changed files

  • config-localtest.conf
  • config-test-dbbackup.conf
  • config-test-index.conf

Related: tronprotocol/java-tron#6615

HOCON null values cannot be bound by ConfigBeanFactory to String fields.
Use empty string instead, which has the same effect (triggers the
automatic IP detection fallback in java-tron).

Related: tronprotocol/java-tron#6615
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant