Skip to content
This repository was archived by the owner on May 31, 2021. It is now read-only.
Merged
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
4 changes: 1 addition & 3 deletions src/main/java/me/moocar/logbackgelf/Transport.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ public class Transport {

private final InetAddress graylog2ServerAddress;
private final int graylog2ServerPort;
private final SocketAddress loopbackAddress = System.getProperty("os.name").toLowerCase(Locale.ENGLISH).indexOf("windows") > -1 ?
new InetSocketAddress("localhost", 0) : new InetSocketAddress(0);

public Transport(int graylog2ServerPort, InetAddress graylog2ServerAddress) {
this.graylog2ServerPort = graylog2ServerPort;
Expand Down Expand Up @@ -72,7 +70,7 @@ private DatagramSocket getDatagramSocket() {

try {

return new DatagramSocket(loopbackAddress);
return new DatagramSocket();

} catch (SocketException ex) {

Expand Down