修复udp

This commit is contained in:
qaq
2025-07-06 23:26:46 +08:00
parent cd9f86dd02
commit 0adc09f5de
@@ -301,6 +301,11 @@ public class GostUtil {
private static JSONObject createListener(String protocol) {
JSONObject listener = new JSONObject();
listener.put("type", protocol);
if (Objects.equals(protocol, "udp")){
JSONObject metadata = new JSONObject();
metadata.put("keepAlive", true);
listener.put("metadata", metadata);
}
return listener;
}