GithubHelp home page GithubHelp logo

ifa6 / luci-app-kcptun Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kuoruan/luci-app-kcptun

0.0 3.0 0.0 61 KB

Luci support for kcptun

License: Apache License 2.0

Makefile 2.07% Lua 55.10% HTML 17.47% Shell 25.36%

luci-app-kcptun's Introduction

luci-app-kcptun

Luci support for kcptun

OpenWrt 上的 Kcptun Luci 支持界面

编译说明

cd openwrt
git clone https://github.com/kuoruan/luci-app-kcptun.git feeds/luci/applications/luci-app-kcptun
rm -rf tmp/

./scripts/feeds update -a
./scripts/feeds install -a

make menuconfig
make package/luci-app-kcptun/compile

安装说明

  1. 根据 OpenWrt 固件版本下载 luci-app-kcptun 和 luci-i18n-kcptun-zh-cn (如果你不清楚你的 OpenWrt 固件版本, 请统一下载 chaos-calmer 版)
  2. 将下载好的 ipk 文件上传到 OpenWrt 目录下, 如 /tmp 目录
  3. 使用 shell 登陆路由器, 切换到上传目录下, 先安装 luci-app-kcptun 再安装 luci-i18n-kcptun-zh-cn
opkg install luci-app-kcptun_*.ipk
opkg install luci-i18n-kcptun-zh-cn_*.ipk

安装好 luci 之后需要下载路由器对应版本的 Kcptun 客户端文件, 下载之后上传到路由器上任意目录(如: /usr/bin/kcptun)

之后到 luci 中配置好客户端或路径即可使用, 若提示不是 Kcptun 文件, 说明所下载的客户端文件不适合当前路由器, 请重新下载

Kcptun 客户端

下载地址: https://github.com/xtaci/kcptun/releases

ar71xx ramips 可以到这里下载 https://github.com/bettermanbao/openwrt-kcptun/releases

卸载说明

卸载时需要先卸载 luci-i18n-kcptun-zh-cn, 再卸载 luci-app-kcptun

opkg remove luci-i18n-kcptun-zh-cn
opkg remove luci-app-kcptun

错误说明

由于 designated-driver 版中使用了一个新的 post 函数, 可能会出现找不到该函数而报错:

/usr/lib/lua/luci/controller/kcptun.lua:41: attempt to call global 'post' (a nil value)
stack traceback:
	/usr/lib/lua/luci/controller/kcptun.lua:41: in function 'e'
	/usr/lib/lua/luci/dispatcher.lua:444: in function 'createtree'
	/usr/lib/lua/luci/dispatcher.lua:160: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:135: in function </usr/lib/lua/luci/dispatcher.lua:134>

出现这种情况时,先卸载掉 designated-driver 版, 下载 chaos-calmer 版重新安装

截图:https://blog.kuoruan.com/113.html

luci-app-kcptun's People

Contributors

kuoruan avatar

Watchers

James Cloos avatar  avatar  avatar

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.