Skip to content

Commit 79412aa

Browse files
doxxdoxx
doxx
authored and
doxx
committed
Fixes for SSH
1 parent 738fed2 commit 79412aa

7 files changed

+23
-26
lines changed

bin/checksums.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# DarkFlare Binary Checksums
2-
# Generated: Wed Dec 4 15:13:34 UTC 2024
2+
# Generated: Wed Dec 4 15:30:21 UTC 2024
33

4-
dcb32ff048378506046d364cd2c226ba0f8d137a49a924670a9f7c434a8d3049 checksums.txt
5-
192bf6b64d0849325882c2f8e626fffc7bd3414c47fccdc14b582bae2f161c36 darkflare-client-darwin-amd64
6-
4362838083f35051ff6dae482b754b875c8413e9c3ac73363257cd752c8e3751 darkflare-client-darwin-arm64
7-
a500646c956354f087c74f2553d3ace97d3c45fcc1b7523fe6a8020b73bc6546 darkflare-client-linux-amd64
8-
ac31b5ad270c58232e97d9075e5e2edd92f3d1f3fac794d6ffa22cc2ea98cd74 darkflare-client-linux-arm64
9-
c963e061ff460230a76ceed0caa34575e8eea716a1845be37d2aa25f913c6547 darkflare-client-windows-amd64.exe
4+
ff7c1eccdd79bdee1a90d2c2f21bc50e349e22bf61ab635e3424d14fa66ca0f0 checksums.txt
5+
34a6ed9b391afc4d242afdfb3f883dba025e3491987d01e5967d39b5ddc69a20 darkflare-client-darwin-amd64
6+
dbd5c52b906d2e0abc4287553daa737674eca3aa46e658dbad6d5cc507709503 darkflare-client-darwin-arm64
7+
def28ca730fa6836f610192a1daa0e6ffcbfb1d0881eadb5d83de8bc5c699d5c darkflare-client-linux-amd64
8+
5da5cc25c4f4d3b0cef5d4816a6285693669fd5922d80dfc576ce0110d0e9ec8 darkflare-client-linux-arm64
9+
82775abe3ef0f529da092b40b802e4c5680f09d372e17601c5985f050ef7e162 darkflare-client-windows-amd64.exe
1010
066cec69f0535357477f375e930a4177ec113b8ca9fe4a9d93a9e8ea5871a989 darkflare-server-darwin-amd64
1111
e2e6289a82224326f83f09ffffc0d81c1687a59faae53ec76bee202efa21c432 darkflare-server-darwin-arm64
1212
6b2dfc3eff05d72acdd1987c07083aaf95fad39fd21058efd114d8d41a16fde3 darkflare-server-linux-amd64

bin/darkflare-client-darwin-amd64

0 Bytes
Binary file not shown.

bin/darkflare-client-darwin-arm64

0 Bytes
Binary file not shown.

bin/darkflare-client-linux-amd64

-8 Bytes
Binary file not shown.

bin/darkflare-client-linux-arm64

-24 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

client/main.go

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ func NewClient(cloudflareHost string, destPort int, scheme string, destAddr stri
8282
debug: debug,
8383
maxBodySize: 10 * 1024 * 1024,
8484
rateLimiter: rate.NewLimiter(rate.Every(time.Millisecond*100), 1000),
85-
readBufferSize: 64 * 1024, // Increase to 64KB
86-
writeBufferSize: 64 * 1024, // Increase to 64KB
87-
pollInterval: 25 * time.Millisecond, // Decrease from 50ms to 25ms
85+
readBufferSize: 32 * 1024,
86+
writeBufferSize: 32 * 1024,
87+
pollInterval: 50 * time.Millisecond,
88+
batchSize: 32 * 1024,
8889
bufferPool: sync.Pool{
8990
New: func() interface{} {
9091
return make([]byte, 64*1024) // Increase to 64KB
9192
},
9293
},
93-
batchSize: 64 * 1024, // 64KB batch size
9494
}
9595

9696
// Load system root CAs
@@ -110,29 +110,26 @@ func NewClient(cloudflareHost string, destPort int, scheme string, destAddr stri
110110
CurvePreferences: []tls.CurveID{
111111
tls.X25519,
112112
tls.CurveP256,
113-
tls.CurveP384,
114113
},
115114
CipherSuites: []uint16{
116115
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
117116
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
118-
tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
119-
tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
120-
tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,
121-
tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256,
122117
},
123-
PreferServerCipherSuites: false,
118+
PreferServerCipherSuites: true,
124119
SessionTicketsDisabled: false,
125120
InsecureSkipVerify: false,
126-
NextProtos: []string{"http/1.1"}, // Force HTTP/1.1
121+
NextProtos: []string{"http/1.1"},
127122
},
128-
MaxIdleConns: 100,
129-
IdleConnTimeout: 90 * time.Second,
130-
DisableCompression: true,
131-
ForceAttemptHTTP2: false, // Disable HTTP/2
132-
MaxIdleConnsPerHost: 100,
133-
MaxConnsPerHost: 100,
134-
WriteBufferSize: 64 * 1024,
135-
ReadBufferSize: 64 * 1024,
123+
MaxIdleConns: 1,
124+
IdleConnTimeout: 90 * time.Second,
125+
DisableCompression: true,
126+
ForceAttemptHTTP2: false,
127+
MaxIdleConnsPerHost: 1,
128+
MaxConnsPerHost: 1,
129+
WriteBufferSize: 32 * 1024,
130+
ReadBufferSize: 32 * 1024,
131+
ResponseHeaderTimeout: 30 * time.Second,
132+
ExpectContinueTimeout: 1 * time.Second,
136133
}
137134

138135
client.httpClient = &http.Client{

0 commit comments

Comments
 (0)