MCPcopy Create free account
hub / github.com/GFW-knocker/gfw_resist_tls_proxy / main

Method main

Java/Main.java:5–39  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

3public class Main {
4
5 public static void main(String[] args){
6 System.out.println("your java version :"+System.getProperty("java.version")+" recommended=java 17.0+");
7
8
9 // set listen_port=0 to automatically choose some random port for listening
10 TLS_Fragmentor TLS_serv = new TLS_Fragmentor("127.0.0.1" ,2500 ,
11 "discord.com" ,443 ,
12 true , 87 , 0.005);
13 TLS_serv.start();
14 // System.out.println("port opened : "+ serv.get_listen_port() );
15
16
17
18 // DoH service to be used inside code for DNS
19 DoH_over_Fragment DoH_service = new DoH_over_Fragment("cloudflare",
20 "sciencedirect.com", 443,
21 true, 87, 0.005);
22
23
24 // HTTPS proxy listening on 127.0.0.1:4500
25 HTTPS_Fragmentor HTTPS_serv = new HTTPS_Fragmentor("127.0.0.1",4500,
26 null, -1,
27 DoH_service,true,
28 87,0.005);
29 HTTPS_serv.start();
30
31 DoH_service.query("youtube.com");
32 DoH_service.query("youtu.be");
33 DoH_service.query("google.com");
34 DoH_service.query("fb.com");
35 DoH_service.query("twitter.com");
36 DoH_service.query("instagram.com");
37
38
39 }
40
41}
42

Callers

nothing calls this directly

Calls 1

queryMethod · 0.95

Tested by

no test coverage detected