diff --git a/src/main/java/com/telpo/dipperposition/server/DipperPositionServer.java b/src/main/java/com/telpo/dipperposition/server/DipperPositionServer.java index 5d56980..157aea2 100644 --- a/src/main/java/com/telpo/dipperposition/server/DipperPositionServer.java +++ b/src/main/java/com/telpo/dipperposition/server/DipperPositionServer.java @@ -44,7 +44,7 @@ public class DipperPositionServer { String dataId = "dipperposition-service"; String group = "DEFAULT_GROUP"; Properties properties = new Properties(); - properties.put(PropertyKeyConst.SERVER_ADDR, ip4); + properties.put(PropertyKeyConst.SERVER_ADDR, ip4.getHostAddress()); ConfigService configService = NacosFactory.createConfigService(properties); String content = configService.getConfig(dataId, group, 5000);