File tree Expand file tree Collapse file tree
src/main/java/scouter/plugin/server/influxdb Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55 <groupId >scouter.plugin.server</groupId >
66 <artifactId >scouter-plugin-server-influxdb</artifactId >
7- <version >1.0.2 -SNAPSHOT</version >
7+ <version >1.0.3 -SNAPSHOT</version >
88 <packaging >jar</packaging >
99
1010 <name >scouter-plugin-server-influxdb</name >
Original file line number Diff line number Diff line change 22
33import scouter .server .Configure ;
44import scouter .server .Logger ;
5+ import scouter .util .StringUtil ;
56
67import java .io .IOException ;
78import java .net .DatagramPacket ;
@@ -40,7 +41,7 @@ public void setTarget(String ip, int port) {
4041
4142 public void setLocalAddr (String localIp , int localPort ) {
4243 try {
43- localUdpAddr = localIp ;
44+ localUdpAddr = StringUtil . isEmpty ( localIp ) ? null : localIp ;
4445 localUdpPort = localPort ;
4546 openDatagramSocket ();
4647 } catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments