mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-06 10:06:36 +08:00
修复udp
This commit is contained in:
@@ -301,6 +301,11 @@ public class GostUtil {
|
|||||||
private static JSONObject createListener(String protocol) {
|
private static JSONObject createListener(String protocol) {
|
||||||
JSONObject listener = new JSONObject();
|
JSONObject listener = new JSONObject();
|
||||||
listener.put("type", protocol);
|
listener.put("type", protocol);
|
||||||
|
if (Objects.equals(protocol, "udp")){
|
||||||
|
JSONObject metadata = new JSONObject();
|
||||||
|
metadata.put("keepAlive", true);
|
||||||
|
listener.put("metadata", metadata);
|
||||||
|
}
|
||||||
return listener;
|
return listener;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user