ehang-io / nps

一款轻量级、高性能、功能强大的内网穿透代理服务器。支持tcp、udp、socks5、http等几乎所有流量转发,可用来访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析、内网socks5代理等等……,并带有功能强大的web管理端。a lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal.
https://ehang.io/nps/documents
GNU General Public License v3.0
29.71k stars 5.36k forks source link

mt7621 Illegal instruction #1245

Open Wonder1031 opened 9 months ago

Wonder1031 commented 9 months ago

root@OpenWrt:/nps# tar zxvf linux_mipsle_client.tar.gz npc conf/npc.conf conf/multi_account.conf root@OpenWrt:/nps# ./npc install -server=##########3 -vkey=######## -type=tcp Illegal instruction

MoeField commented 9 months ago

try use ="####" instead of =#### ?

Arexh commented 4 months ago

Solved by softfloat compiling

CGO_ENABLED=0 GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
tar -czvf linux_mipsle_softfloat_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key  conf/server.pem web/views web/static nps

CPU utilization is high however 😢