Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>net.nacos</groupId>
<artifactId>spring-cloud-nacos</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<packaging>pom</packaging>

<name>Nacos Plus for Spring Cloud ${project.version}</name>
Expand Down
2 changes: 1 addition & 1 deletion spring-cloud-nacos-proxy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>net.nacos</groupId>
<artifactId>spring-cloud-nacos</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>net.nacos</groupId>
<artifactId>spring-cloud-nacos-proxy</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -28,7 +28,7 @@
<dependency>
<groupId>net.nacos</groupId>
<artifactId>spring-cloud-nacos-config-proxy</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>com.alibaba.nacos</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>net.nacos</groupId>
<artifactId>spring-cloud-nacos-proxy</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>net.nacos</groupId>
<artifactId>spring-cloud-nacos-proxy</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -26,7 +26,7 @@
<dependency>
<groupId>net.nacos</groupId>
<artifactId>spring-cloud-nacos-eureka-proxy</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>com.alibaba.nacos</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>net.nacos</groupId>
<artifactId>spring-cloud-nacos-proxy</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ protected void deregister(InstanceInfo instanceInfo) {
protected void register(Instance instance) {
String appName = instance.getServiceName().substring(instance.getServiceName().lastIndexOf('@') + 1);
String discoveryClient = instance.getMetadata().get(ProxyConstants.METADATA_DISCOVERY_CLIENT);
InetUtils.HostInfo hostInfo = inetUtils.findFirstNonLoopbackHostInfo();
String hostname = hostInfo.getHostname();
String hostname =instance.getIp();

if (StringUtils.isEmpty(discoveryClient)) {
Map<String, String> metadata = new HashMap<>(instance.getMetadata());
Expand Down