mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 22:03:03 +08:00
Respect FrontHTTPS when creating URI for gacha record
This commit is contained in:
parent
747d6e91f6
commit
ab5131e9fd
@ -96,7 +96,7 @@ public class GachaBanner {
|
|||||||
return toProto("");
|
return toProto("");
|
||||||
}
|
}
|
||||||
public GachaInfo toProto(String sessionKey) {
|
public GachaInfo toProto(String sessionKey) {
|
||||||
String record = "https://"
|
String record = "http" + (Grasscutter.getConfig().getDispatchOptions().FrontHTTPS ? "s" : "") + "://"
|
||||||
+ (Grasscutter.getConfig().getDispatchOptions().PublicIp.isEmpty() ?
|
+ (Grasscutter.getConfig().getDispatchOptions().PublicIp.isEmpty() ?
|
||||||
Grasscutter.getConfig().getDispatchOptions().Ip :
|
Grasscutter.getConfig().getDispatchOptions().Ip :
|
||||||
Grasscutter.getConfig().getDispatchOptions().PublicIp)
|
Grasscutter.getConfig().getDispatchOptions().PublicIp)
|
||||||
|
Loading…
Reference in New Issue
Block a user