You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewIllegalStateException("invalid IP address: " + ip);
However, Spring allows Users to specify a hostname because Spring converts the input to an InetAddress.
So we need to also allow users to specify a hostname by
adding ArmeriaSettings.address whose type is InetAddress
deprecating ArmeriaSettings.ip
The text was updated successfully, but these errors were encountered:
Motivation:
Spring allows Users to specify a hostname because Spring converts the input to an InetAddress.
So we need to also allow users to specify a hostname.
Modifications:
- adding ArmeriaSettings.address whose type is InetAddress
- deprecating ArmeriaSettings.ip
Result:
- Closes#4597
Users can specify an IP address of Armeria server via a Spring property file:
armeria/spring/boot2-autoconfigure/src/main/java/com/linecorp/armeria/spring/ArmeriaSettings.java
Lines 83 to 87 in 39df04b
It only takes an IP address so if a hostname is specified, Armeria throws an exception:
armeria/spring/boot2-autoconfigure/src/main/java/com/linecorp/armeria/internal/spring/ArmeriaConfigurationNetUtil.java
Line 84 in 7626562
However, Spring allows Users to specify a hostname because Spring converts the input to an
InetAddress
.So we need to also allow users to specify a hostname by
ArmeriaSettings.address
whose type isInetAddress
ArmeriaSettings.ip
The text was updated successfully, but these errors were encountered: