lazytiger / trojan-rs Goto Github PK
View Code? Open in Web Editor NEWTrojan server and proxy programs written in Rust
License: MIT License
Trojan server and proxy programs written in Rust
License: MIT License
Hello!
I am faced with a difficult task: I need start client and server on same device to spoof SNI host locally.
(If you know a more concise method of spoofing, please tell me. I need only this.)
I have root, busybox and full shell access and etc.
How should I set up the firewall rules? I tried many ways to do this, but I can't connect correctly.
I really need for your help, please. Thanks for your work!
请问trojan-rs和其他trojan是否通用,例如:我server用
client用trojan-rs是否可行?谢谢
希望参与测试
看到Xray-core有对延迟优化使用的是GRPC,后续trojan是否考虑兼容Xray的GRPC
能否增加websocket的支持?
谢谢!
warning: unused imports: SocketAddr
, UdpSocket
--> src/bin/dns.rs:2:11
|
2 | net::{SocketAddr, UdpSocket},
| ^^^^^^^^^^ ^^^^^^^^^
|
= note: #[warn(unused_imports)]
on by default
warning: unused import: Runtime
--> src/bin/dns.rs:7:31
|
7 | use tokio::runtime::{Builder, Runtime};
| ^^^^^^^
warning: function test
is never used
--> src/bin/dns.rs:11:4
|
11 | fn test() {
| ^^^^
|
= note: #[warn(dead_code)]
on by default
warning: trojan
(bin "dns") generated 3 warnings (run cargo fix --bin "dns"
to apply 2 suggestions)
error: linking with cc
failed: exit status: 1
用优选cf方式使用grpc作为跳板效果很稳定
能否把服务器的连接ip、域名分开成两个设置?
不然很容易遇到鸡生蛋、蛋生鸡问题
i run it at my vps as
./trojan -a 0.0.0.0 -p test server --cert trojan.crt --key trojan.key -r 127.0.0.1:8080
and got error message:
[2020-03-18 08:35:34.580767][src/main.rs:26][WARN]trojan started in server mode
thread 'main' panicked at 'no private key found', src/server/mod.rs:40:17
and the cert and key file are generated by acme script , it worked fine in v2ray .
how can i fix it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.