Git Product home page Git Product logo

txray's People

Contributors

hsernos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

txray's Issues

build error

go build Txray.go

build command-line-arguments: cannot load embed: malformed module path "embed": missing dot in first path element

MacOS stop无法停止进程中的xray, 手动kill后, run失效

版本、系统及CPU架构

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设置(终端运行 Txray setting 查看),以及问题相关的截图。

能否添加故障转移

您想提出的功能特性是否和现有问题相关?

功能特性内容

能否增加节点定时检测,当前使用的节点超时后,自动使用下一个节点

显示节点无法连接

版本、系统及CPU架构

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设置(终端运行 Txray setting 查看),以及问题相关的截图。

image

Problem with reality configs

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?

添加真连接测试

您想提出的功能特性是否和现有问题相关?

排除不可用节点

功能特性内容

测试节点的真连接

socks

版本、系统及CPU架构

  1. Txray-Linux-64 v3.0.7

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 测一下现在那个最快

node add -l Vmess://xxxxxx 执行后,再执行node -d 发现没有节点

版本、系统及CPU架构

1.Txray-linux-64.zip

2.Ubuntu 18.04.6 LTS \n \l x86-64

描述问题

在 Txray Shell 命令行内执行:
node add -l vmess://xxxx

Txray设置以及相关截图

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 ] 无节点

proxyconnect tcp: dial tcp 127.0.0.1:1080: connect: connection refused

版本、系统及CPU架构

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设置(终端运行 Txray setting 查看),以及问题相关的截图。

image

image

xray启动失败,无报错信息

版本、系统及CPU架构

Ubuntu 20.04

描述问题

xray启动失败,无报错信息

Txray设置以及相关截图

报错信息:

2024-02-18 10:34:16 [error] 开启xray服务失败, 查看下面报错信息来检查出错问题

image

运行错误 panic: runtime error: invalid memory address or nil pointer dereference

系统:alpine 3
版本:Txray - Xray Shell Client - v3.0.6

这是百度的结果。。非专业,不知道正确与否。看是否能给你帮助。
使用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()

如何进行透明代理,也就是整机翻墙

版本、系统及CPU架构

1.你在使用什么版本的Txray,例如 ‘Txray-macos-64 v3.0.2’

2.你所使用的操作系统及CPU架构,例如 ‘windows11 x86-64’

描述问题

Txray设置以及相关截图

贴入Txray设置(终端运行 Txray setting 查看),以及问题相关的截图。

使用PATH中的core

您想提出的功能特性是否和现有问题相关?

单独更新一份core和rules很麻烦的

功能特性内容

使用环境变量中的core,例如/usr/bin/xray和/usr/share/xray

Trojan tls: first record does not look like a TLS handshake

版本、系统及CPU架构

1.Txray Linux v3.0.7

2.Ubuntu 22.04.2 LTS x86-64, Windows 10 x86-64

  1. Xray-core 1.7.5

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可以自定义配置外。其他的好像无法自定义配置会在程序目录生成。能否手动指定这些文件的目录

一个vless节点已经添加,命令run报错

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
image

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 $`

run all时所有节点-1ms,但自己手动用命令行启动xray正常使用

版本、系统及CPU架构

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设置(终端运行 Txray setting 查看),以及问题相关的截图。
socks端口是10808,其他默认

求大佬更新下能支持macos13吗

版本、系统及CPU架构

1.你在使用什么版本的Txray,例如 ‘Txray-macos-64 v3.0.2’
最新版本

2.你所使用的操作系统及CPU架构,例如 ‘windows11 x86-64’
Macos

描述问题

Txray设置以及相关截图

贴入Txray设置(终端运行 Txray setting 查看),以及问题相关的截图。

Windows11 添加环境变量,以及隐藏窗口 和 开机自启的方法.

版本、系统及CPU架构

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 用户环境变量,系统变量没有添加
问题描述:

  1. 每当我使用cmd,启动 txray,可以正常工作,但是,只要我关闭了这个cmd,txray应该就不工作了.至少我访问需要的网站结果是无法访问的.
  2. 我创建了计划任务,开机启用.每次我登录后都会显示一个 txray窗口,可以正常工作,但是,如果我关闭了这个txray窗口,应该就不工作了,至少网站是无法访问的.

需求:
txray可以独立运行吗?就是说我用cmd运行后,可以关闭cmd,但希望 txray依然保持运行.
开机启动txray后,是否能隐藏txray的窗口.可以驻守在进程中.

执行run报错

版本、系统及CPU架构

1.Txray-linux-64 v3.0.5

2.linux x86-64

描述问题

添加节点后,执行run报错

复现问题的步骤

run

Txray设置以及相关截图

image

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.