hsernos / txray Goto Github PK
View Code? Open in Web Editor NEWxray 跨平台终端客户端 支持Windows linux Mac
xray 跨平台终端客户端 支持Windows linux Mac
Txray - Xray Shell Client - v3.0.6
debian10
run 1的时候出现
2023-03-13 11:35:08 [warn] Get "https://www.youtube.com": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
docker-compose.yml
network_mode: "host" 使用host端口模式
go build Txray.go
build command-line-arguments: cannot load embed: malformed module path "embed": missing dot in first path element
1.你在使用什么版本的Txray,例如 ‘Txray-macos-64 v3.0.2’
Txray-macos-64 v3.0.2
2.你所使用的操作系统及CPU架构,例如 ‘windows11 x86-64’
MacOS
stop后进程依然存在, 必须手动kill, 但手动kill后, 执行run会出现问题, 所有节点都ping不通, 此时必须nohup手动启动xray, 才能继续使用run启动.
如上, 依步骤执行即可
贴入Txray设置(终端运行 Txray setting 查看),以及问题相关的截图。
能否增加节点定时检测,当前使用的节点超时后,自动使用下一个节点
希望更新支持xtls-rprx-vision
1.你在使用什么版本的Txray,例如 ‘Txray-macos-64 v3.0.2’
Txray - Xray Shell Client - v3.0.7
2.你所使用的操作系统及CPU架构,例如 ‘windows11 x86-64’
Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-91-generic x86_64)
所有ShadowSocks无法连接,测速正常,但是都显示一下问题,局域网也访问不了
2023-12-25 15:46:04 [info] 启动成功, 监听socks/http端口: 7890/7891, 所选节点: 1
2023-12-25 15:46:04 [warn] Get "https://www.youtube.com": proxyconnect tcp: dial tcp 127.0.0.1:7890: connect: connection refused
2023-12-25 15:46:04 [info] Error [ https://www.youtube.com ] 延迟: -1ms
贴入Txray设置(终端运行 Txray setting 查看),以及问题相关的截图。
Hey guys,
I get this error when trying to run a reality node:
2023-04-18 18:21:46 [error] 开启xray服务失败, 查看下面报错信息来检查出错问题
2023-04-18 18:21:46 [error] Xray 1.8.1 (Xray, Penetrates Everything.) Custom (go1.20.3 darwin/amd64)
2023-04-18 18:21:46 [error] A unified platform for anti-censorship.
2023-04-18 18:21:46 [error] 2023/04/18 18:21:46 [Info] infra/conf/serial: Reading config: /Users/user/Documents/TxRay/config.json
2023-04-18 18:21:46 [error] Failed to start: main: failed to load config files: [/Users/user/Documents/TxRay/config.json] > infra/conf: REALITY: Empty "realitySettings".
>>>
what do you think is the problem?
不知道能不能安排嘿嘿
排除不可用节点
测试节点的真连接
2.你所使用的操作系统及CPU架构,例如 ‘windows11 x86-64’
Rocky Linux 9
添加的 socks5 节点后 config.json 里的users对象格式错误
2024-02-22 17:28:06 [error] A unified platform for anti-censorship.
2024-02-22 17:28:06 [error] 2024/02/22 17:28:06 [Info] infra/conf/serial: Reading config: /opt/Txray/config.json
2024-02-22 17:28:06 [error] Failed to start: main: failed to load config files: [/opt/Txray/config.json] > infra/conf: failed to parse to outbound detour config. > json: cannot unmarshal object into Go struct field SocksRemoteConfig.servers.users of type []json.RawMessage
"outbounds": [
{
"mux": {
"enabled": false
},
"protocol": "socks",
"settings": {
"servers": [
{
"address": "1.2.3.4",
"port": 1234,
"users": {
"pass": "passhere",
"user": "userhere"
}
}
]
},
"streamSettings": {
"network": "tcp",
"tcpSettings": {
"header": {
"type": "none"
}
}
},
"tag": "proxy"
},
应该是
"users": [{
"pass": "passhere",
"user": "userhere"
}]
透明代理配置起来复杂又繁琐,希望能简化透明代理的配置,能一键解决
root@ecs-7yaoQ:~/Txray# ./Txray run -t -10
2022-01-07 10:05:01 [info] 启动成功, 监听socks端口: 1080, 所选节点: 1
2022-01-07 10:05:06 [warn] Get "https://www.youtube.com": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2022-01-07 10:05:06 [info] Error [ https://www.youtube.com ] 延迟: -1ms
需要对节点进行确认 链接是否正常 1启动前 2运行中突然节点失联 另外在设置选择最低延迟节点这个功能中 还需要定期做测试 比如3600s 测一下现在那个最快
1.Txray-linux-64.zip
2.Ubuntu 18.04.6 LTS \n \l x86-64
在 Txray Shell 命令行内执行:
node add -l vmess://xxxx
Txray - Xray Shell Client - v3.0.3
setting
+-----------+----------+---------+--------------+--------------------+----------+
| SOCKS端口 | HTTP端口 | UDP转发 | 流量地址监听 | 允许来自局域网连接 | 多路复用 |
+-----------+----------+---------+--------------+--------------------+----------+
| 1080 | 0 | true | true | false | false |
+-----------+----------+---------+--------------+--------------------+----------+
+---------+---------+--------------+-----------------+--------------+------------------+
| DNS端口 | 国外DNS | 国内DNS | 备用国内DNS | 路由策略 | 绕过局域网和大陆 |
+---------+---------+--------------+-----------------+--------------+------------------+
| 1350 | 1.1.1.1 | 119.29.29.29 | 114.114.114.114 | IPIfNonMatch | true |
+---------+---------+--------------+-----------------+--------------+------------------+
+-------------------------+-------------------+------------+
| 测试国外URL | 测试超时时间 (秒) | 启动时执行 |
+-------------------------+-------------------+------------+
| https://www.youtube.com | 5 | |
+-------------------------+-------------------+------------+
贴入Txray设置(终端运行 Txray setting 查看),以及问题相关的截图。
结果:
node -d
+------+------+------+------+------+----------+
| 索引 | 协议 | 别名 | 地址 | 端口 | 测试结果 |
+------+------+------+------+------+----------+
+------+------+------+------+------+----------+
[ 0/0 ] 无节点
1.你在使用什么版本的Txray,例如 ‘Txray-macos-64 v3.0.2’
2.你所使用的操作系统及CPU架构,例如 ‘windows11 x86-64’
贴入Txray设置(终端运行 Txray setting 查看),以及问题相关的截图。
1.你在使用什么版本的Txray,例如 ‘Txray-macos-64 v3.0.2’
Txray-linux-64 v3.0.6
2.你所使用的操作系统及CPU架构,例如 ‘windows11 x86-64’
pve 5.15.35 x86-64
执行run之后启动成功,但是无法成功通过测试,显示proxyconnect tcp: dial tcp 127.0.0.1:1080: connect: connection refused
执行run
贴入Txray设置(终端运行 Txray setting 查看),以及问题相关的截图。
这是百度的结果。。非专业,不知道正确与否。看是否能给你帮助。
使用GO指针的时候,出现 panic: runtime error: invalid memory address or nil pointer dereference,这其实是典型的Go 指针声明后没有对指针先初始化而直接赋值导致的错误
new初始化值的内存地址,预先分配一个内存地址到指针。
package main
func main() {
var i *int
i = new(int)
*i=1
}
错误代码:
run 1
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x493279]
goroutine 1 [running]:
os.(*Process).signal(0x7b5100?, {0x8c4770?, 0xaaadf8?})
D:/compiler/go/src/os/exec_unix.go:63 +0x39
os.(*Process).Signal(...)
D:/compiler/go/src/os/exec.go:138
os.(*Process).kill(...)
D:/compiler/go/src/os/exec_posix.go:67
os.(*Process).Kill(...)
D:/compiler/go/src/os/exec.go:123
Txray/xray.Stop()
E:/code/go/Txray/xray/service.go:120 +0x45
Txray/xray.run({0x8c54c8, 0xc0002008f0})
E:/code/go/Txray/xray/service.go:87 +0x3e
Txray/xray.Start({0xc0002420ec, 0x1})
E:/code/go/Txray/xray/service.go:32 +0x139
Txray/cmd.InitServiceShell.func1(0xc0001b6000?)
E:/code/go/Txray/cmd/xray.go:17 +0x2b
github.com/abiosoft/ishell.(*Shell).handleCommand(0xc0001b6000, {0xc000028a00, 0x2, 0x2})
E:/gopath/pkg/mod/github.com/abiosoft/[email protected]+incompatible/ishell.go:250 +0xec
github.com/abiosoft/ishell.handleInput(0xc0001b6000, {0xc000028a00, 0x2, 0x2})
E:/gopath/pkg/mod/github.com/abiosoft/[email protected]+incompatible/ishell.go:204 +0x31
github.com/abiosoft/ishell.(*Shell).run(0xc0001b6000)
E:/gopath/pkg/mod/github.com/abiosoft/[email protected]+incompatible/ishell.go:183 +0x2ef
github.com/abiosoft/ishell.(*Shell).Run(0xc0001ba000?)
E:/gopath/pkg/mod/github.com/abiosoft/[email protected]+incompatible/ishell.go:99 +0x28
main.main()
1.你在使用什么版本的Txray,例如 ‘Txray-macos-64 v3.0.2’
2.你所使用的操作系统及CPU架构,例如 ‘windows11 x86-64’
贴入Txray设置(终端运行 Txray setting 查看),以及问题相关的截图。
单独更新一份core和rules很麻烦的
使用环境变量中的core,例如/usr/bin/xray和/usr/share/xray
1.Txray Linux v3.0.7
2.Ubuntu 22.04.2 LTS x86-64, Windows 10 x86-64
I can only connect to VLESS configurations with Txray, Trojan never works,
But if i add the trojan configurations to xray and directly run Xray.service, they work.
They also work on android with v2rayNG.
The error is "tls: first record does not look like a TLS handshake".
data.json、routing.json、config.json、info.log、setting.toml、xray_access.log、
现在会产生这几个文件。除了xray_access.log可以自定义配置外。其他的好像无法自定义配置会在程序目录生成。能否手动指定这些文件的目录
请问可以增加一个运行run命令后自动设置系统代理吗
每次都要自己手动去改系统socks代理,哈哈
不能在后台运行么?退出终端就自动关闭了./Txray &好像不行
https://github.com/XTLS/Xray-core/releases/download/v1.4.5/Xray-freebsd-arm32-v7a.zip
https://github.com/hsernos/Txray/releases/download/v3.0.0/Txray-linux-arm.zip
Hardware:Raspberry 3B
pi@raspberrypi:~/txray $ lsb_release -a
No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
`Txray - Xray Shell Client - v3.0.0
run
2021-10-10 02:02:36 [error] 开启xray服务失败, 查看下面报错信息来检查出错问题
run
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xacfec]
goroutine 1 [running]:
os.(*Process).signal(0x0, {0x46c974, 0x6200a8})
/usr/local/go/src/os/exec_unix.go:64 +0x38
os.(*Process).Signal(...)
/usr/local/go/src/os/exec.go:138
os.(*Process).kill(...)
/usr/local/go/src/os/exec_posix.go:68
os.(*Process).Kill(...)
/usr/local/go/src/os/exec.go:123
Txray/xray.Stop()
/Users/hsernos/code/go/Txray/xray/service.go:121 +0x48
Txray/xray.run({0x46f634, 0x1c96400})
/Users/hsernos/code/go/Txray/xray/service.go:84 +0x50
Txray/xray.Start({0x3eea11, 0x1})
/Users/hsernos/code/go/Txray/xray/service.go:30 +0x12c
Txray/cmd.InitServiceShell.func1(0x1e163f0)
/Users/hsernos/code/go/Txray/cmd/xray.go:19 +0x74
github.com/abiosoft/ishell.(*Shell).handleCommand(0x1e0c000, {0x1e12258, 0x1, 0x1})
/Users/hsernos/go/pkg/mod/github.com/abiosoft/[email protected]+incompatible/ishell.go:250 +0x120
github.com/abiosoft/ishell.handleInput(0x1e0c000, {0x1e12258, 0x1, 0x1})
/Users/hsernos/go/pkg/mod/github.com/abiosoft/[email protected]+incompatible/ishell.go:204 +0x34
github.com/abiosoft/ishell.(*Shell).run(0x1e0c000)
/Users/hsernos/go/pkg/mod/github.com/abiosoft/[email protected]+incompatible/ishell.go:183 +0x318
github.com/abiosoft/ishell.(*Shell).Run(0x1e0c000)
/Users/hsernos/go/pkg/mod/github.com/abiosoft/[email protected]+incompatible/ishell.go:99 +0x28
main.main()
/Users/hsernos/code/go/Txray/Txray.go:48 +0x258
pi@raspberrypi:~/txray $`
大神出个liunx下小白使用教程呀,看说明搞不定呀
1.你在使用什么版本的Txray,例如 ‘Txray-macos-64 v3.0.2’
3.0.6
2.你所使用的操作系统及CPU架构,例如 ‘windows11 x86-64’
MacOS
按照readme方法一步步操作下来,在run all时所有节点都不可用,但这些节点我在另一台Mac正常使用,而且在本地命令行手动启动xray后,也是正常使用,怀疑是测速组件有bug,节点信息我稍后发至作者邮箱。
按流程走,从剪切板导入节点信息后在终端run all
贴入Txray设置(终端运行 Txray setting 查看),以及问题相关的截图。
socks端口是10808,其他默认
@hsernos
工具用着不错,还更新吗;
1.你在使用什么版本的Txray,例如 ‘Txray-macos-64 v3.0.2’
最新版本
2.你所使用的操作系统及CPU架构,例如 ‘windows11 x86-64’
Macos
贴入Txray设置(终端运行 Txray setting 查看),以及问题相关的截图。
1.你在使用什么版本的Txray,例如 ‘Txray-macos-64 v3.0.2’
Txray-windows-64 v3.0.4
2.你所使用的操作系统及CPU架构,例如 ‘windows11 x86-64’
windows 11
开发者你好,很荣幸使用txray,由于我不是一个程序员,所以问题描述时可能不专业,还请见谅.
你好,目前txray在我的windows11上可以运行,但我遇到了一个问题,需要帮助.
环境描述:
txray已经添加到windows 用户环境变量,系统变量没有添加
问题描述:
需求:
txray可以独立运行吗?就是说我用cmd运行后,可以关闭cmd,但希望 txray依然保持运行.
开机启动txray后,是否能隐藏txray的窗口.可以驻守在进程中.
socks、http、dokodemo-door都可以保留作为选项,路由分流建议使用nftables,这个性能比iptables要好
参考:https://xtls.github.io/document/level-2/tproxy.html
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.