Respect FrontHTTPS when creating URI for gacha record

This commit is contained in:
HotaruYS 2022-05-07 22:07:55 +02:00 committed by Melledy
parent 747d6e91f6
commit ab5131e9fd

View File

@ -96,7 +96,7 @@ public class GachaBanner {
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)