Skip to content

Commit

Permalink
tiny improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Linary committed Feb 27, 2020
1 parent d491522 commit fe624f1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static synchronized HubbleOptions instance() {

public static final ConfigListOption<String> CONNECTION_IP_WHITE_LIST =
new ConfigListOption<>(
"graph_connection.ip.white_list",
"graph_connection.ip_white_list",
"The ip white list available for connecting to " +
"HugeGraphServer, * means no ip limited.",
input -> {
Expand All @@ -94,7 +94,7 @@ public static synchronized HubbleOptions instance() {

public static final ConfigListOption<Integer> CONNECTION_PORT_WHITE_LIST =
new ConfigListOption<>(
"graph_connection.port.white_list",
"graph_connection.port_white_list",
"The port white list available for connecting to " +
"HugeGraphServer, -1 means no port limited.",
input -> {
Expand Down
4 changes: 2 additions & 2 deletions hubble-be/src/main/resources/hugegraph-hubble.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
server.host=localhost
server.port=8088

graph_connection.ip.white_list=[10.10.10.10]
graph_connection.port.white_list=[8081]
graph_connection.ip_white_list=[*]
graph_connection.port_white_list=[-1]

gremlin.suffix_limit=250
gremlin.vertex_degree_limit=100
Expand Down
10 changes: 5 additions & 5 deletions hubble-be/src/main/resources/i18n/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ service.unknown-host=The host {0} is unknown
graph-connection.name.unmatch-regex=Invalid connection name, valid name is up to 48 alpha-numeric characters and underscores
graph-connection.graph.unmatch-regex=Invalid connection graph, valid graph is up to 48 alpha-numeric characters and underscores and only letters are supported as first letter
graph-connection.graph.unexist=There is no graph with the name {0} on service {1}:{2}
graph-connection.host.unmatch-regex=Invalid connection host, valid host is ip address or alpha-numeric characters and some special symbol like: _!~*'()-.
graph-connection.host.unresolved=Unresolved host or ip
graph-connection.host.unauthorized=Unauthorized host or ip
graph-connection.host.unmatch-regex=Invalid connection host, valid host is IP address or alpha-numeric characters and some special symbol like: _!~*'()-.
graph-connection.host.unresolved=Unresolved host or IP
graph-connection.host.unauthorized=Unauthorized host or IP
graph-connection.port.must-be-in-range=The param port must be in the range of {0}, but got {1}
graph-connection.port.unauthorized=Unauthorized port
graph-connection.username-or-password.incorrect=Incorrect username or password
Expand Down Expand Up @@ -121,6 +121,6 @@ license.verify.version.unmatch=The hugegraph-hubble's version {0} exceeded the a
license.verify.graphs.exceed=The hugegraph-hubble's graphs {0} exceeded the authorized {1}
license.verify.datasize.exceed=The hugegraph-hubble's graph {0} data size {1}MB exceeded the authorized {2}MB
license.datasize.no-limit=no limit
license.verify.ip.unauthorized=The hugegraph-hubble's ip {0} doesn't match the authorized {1}
license.verfiy.mac-unmatch-ip=Failed to get mac address for ip {0}
license.verify.ip.unauthorized=The hugegraph-hubble's IP {0} doesn't match the authorized {1}
license.verfiy.mac-unmatch-ip=Failed to get mac address for IP {0}
license.verify.mac.unauthorized=The hugegraph-hubble's mac {0} doesn't match the authorized {1}
4 changes: 2 additions & 2 deletions hubble-be/src/main/resources/i18n/messages_zh_CN.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ graph-connection.name.unmatch-regex=连接名不合法,连接名允许字母
graph-connection.graph.unmatch-regex=连接的图名不合法,图名应该由字母,数字以及下划线组成,第一个字符必须是字母,最多 48 个字符
graph-connection.graph.unexist=不存在名字为 {0} 的图在服务 {1}:{2} 上
graph-connection.host.unmatch-regex=连接的主机名不合法, 主机名应该由字母,数字以及一些特殊字符组成,比如:_!~*'()-.
graph-connection.host.unresolved=无法解析的主机名或 ip
graph-connection.host.unauthorized=未经授权的主机名或 ip
graph-connection.host.unresolved=无法解析的主机名或 IP
graph-connection.host.unauthorized=未经授权的主机名或 IP
graph-connection.port.must-be-in-range=端口号必须属于区间 {0},但实际为 {1}
graph-connection.port.unauthorized=未经授权的端口
graph-connection.username-or-password.incorrect=用户名或密码不正确
Expand Down

0 comments on commit fe624f1

Please sign in to comment.