Skip to content

Commit 6032ff3

Browse files
committed
Oops, use the actual sender IP not the server IP.
1 parent 7cd1076 commit 6032ff3

File tree

1 file changed

+3
-1
lines changed
  • Client/src/main/java/stream/flarebot/webhook_distributor/events

1 file changed

+3
-1
lines changed

Client/src/main/java/stream/flarebot/webhook_distributor/events/Event.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import spark.Request;
44
import stream.flarebot.webhook_distributor.Sender;
55

6+
import javax.annotation.Nonnull;
67
import javax.annotation.Nullable;
78

89
public class Event {
@@ -24,8 +25,9 @@ public String getAuthorization() {
2425
return this.request.headers("Authorization");
2526
}
2627

28+
@Nonnull
2729
public String getIP() {
28-
return this.request.ip();
30+
return this.request.headers("Sent-By");
2931
}
3032

3133
protected Request getRequest() {

0 commit comments

Comments
 (0)