Skip to content

Commit b4d602e

Browse files
committed
fix(config): replace external.ip=null with empty string
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
1 parent 0098ce9 commit b4d602e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

testcase/src/test/resources/config-localtest.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ node.discovery = {
5959
enable = true
6060
persist = true
6161
bind.ip = ""
62-
external.ip = null
62+
external.ip = ""
6363
}
6464

6565
node.backup {

testcase/src/test/resources/config-test-dbbackup.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ node.discovery = {
6262
enable = true
6363
persist = true
6464
bind.ip = ""
65-
external.ip = null
65+
external.ip = ""
6666
}
6767

6868
node.backup {

testcase/src/test/resources/config-test-index.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ node.discovery = {
5555
enable = true
5656
persist = true
5757
bind.ip = ""
58-
external.ip = null
58+
external.ip = ""
5959
}
6060

6161
node {

0 commit comments

Comments
 (0)