Skip to content

Commit

Permalink
Respect FrontHTTPS when creating URI for gacha record
Browse files Browse the repository at this point in the history
  • Loading branch information
HotaruYS authored and Melledy committed May 7, 2022
1 parent 55d47a0 commit 75032b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/emu/grasscutter/game/gacha/GachaBanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public GachaInfo toProto() {
return toProto("");
}
public GachaInfo toProto(String sessionKey) {
String record = "https://"
String record = "http" + (Grasscutter.getConfig().getDispatchOptions().FrontHTTPS ? "s" : "") + "://"
+ (Grasscutter.getConfig().getDispatchOptions().PublicIp.isEmpty() ?
Grasscutter.getConfig().getDispatchOptions().Ip :
Grasscutter.getConfig().getDispatchOptions().PublicIp)
Expand Down

0 comments on commit 75032b4

Please sign in to comment.