GithubHelp home page GithubHelp logo

Comments (4)

semigodking avatar semigodking commented on August 31, 2024

在/etc/config/ 下应该有个redsocks2 的配置文件,里面没配,且里面'enabled'. =0
2015年12月21日 下午10:52,"duffercn" [email protected]写道:

安装完以后/etc/initd/redsocks2 start就会出现这个错误:
redsocks2 is not enabledExit now

直接用 /usr/sbin/redsocks2 -c xxxconf 就可以。

小白我看了这段代码,但不太明白应该怎么改。求助,谢谢

if_enabled() {
local cfg="$1"
config_get_bool enabled "$cfg" 'enabled' '0'
[ $enabled = '0' ] && {
echo "redsocks2 is not enabledExit now"
exit 1
}
}


Reply to this email directly or view it on GitHub
#31.

from redsocks.

duffercn avatar duffercn commented on August 31, 2024

可是我的配置文件是在/etc/config/redsocks2.conf,我在文件第一行试着加了一行enabled="1",还是不行。
感谢这么迅速的回复!

from redsocks.

semigodking avatar semigodking commented on August 31, 2024

你要自己看一下这文件的格式, 不是随便加的。
2015年12月21日 下午11:04,"duffercn" [email protected]写道:

可是我的配置文件是在/etc/config/redsocks2.conf,我在文件第一行试着加了一行enabled="1",还是不行。
感谢这么迅速的回复!


Reply to this email directly or view it on GitHub
#31 (comment)
.

from redsocks.

duffercn avatar duffercn commented on August 31, 2024

搞明白了,原来是配置文件的格式变了,然后运行时根据配置文件再生成redsocks2.conf。已搞定,再次感谢!

from redsocks.

Related Issues (20)

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.