Peter

Results 20 comments of Peter

@dhfromkorea I put your code in the head of init function, but seems like it doesn't work

> > 我以前用v2ray,今天换了个口味玩trojan,服务端用的就是openssl的自签名证书,而且没绑域名,纯ip,居然成功了。我一直都对tls心里有点恐惧,没想到整个过程令人难以置信的简单,半个多小时就完成了,好高兴啊 > > 整个过程,我只通过openssl在服务端安装了自签证书,并在config指定了key和cert的路径;至于客户端,是windows版本的,不需要导入或指定任何证书,只是把"verify_hostname"设置了false,"verify"也设置成了false——当然这两个有没有必要设置,我也不知道。 > > 我是参考( https://stackoverflow.com/questions/51340872/can-i-certify-website-without-domain-name )来给服务器自签证书的,真的特别简单。 > > 所以我觉得,如果连接不上,估计不会是证书的问题,可能是你两边的ip、端口没设置对,或服务器/客户端的trojan程序没启动,抑或是你端口转发没设置对,再或者是你服务端被墙了。注意看客户端的错误信息来排除bug。 > > 这样有加密链接吗,我使用自签名证书,但是客户端没有导入证书也可以进行连接,不知道为什么了 @AbianTang 求助, 我用自签名的证书服务端直接无法启动, 提示 `[FATAL] 2023/07/08 23:24:42 github.com/p4gefau1t/trojan-go/proxy.(*Node).BuildNext:stack.go:29 tls failed to load key...

> 因为 版本来老了,没更新,在线地址 上的配置文件全失效了。 @Deoncn 老版本不支持自签证书?

> Thank you for this Pull Request @fstonezst 👏 ⭐ > > I will have a look. Thank you for reviewing the Pull Request! I appreciate your time and effort....

> Thank you again for taking the time to get familiar with the source code and making a Pull Request. This is much appreciated! > > As I understand your...

> > This is crucial because, although the app can check its network status through other means, each module within the app may handle network exceptions differently. If the client...

> What would make more sense to me is to emit the error and let the JavaScript determine what to do. > > Example: The `rc` is an error code...

> > I don't think "error" is the best choice. There are two main reasons: First, it's too generic, which might make it less convenient for developers to use and...

> > Sure, here’s a pseudocode example of what a Node.js app might do when receiving a disconnect event: ` class demo { constructor(zkClient: ZooKeeper) { zkClient.on("connect", async() => {...

> Ok! If that is the case, don't you think the existing events (`connecting`, `connect` and `close`) will handle that already, have you tried that out? As I mentioned earlier,...