Giter Club home page Giter Club logo

Comments (5)

pymumu avatar pymumu commented on May 22, 2024

装ar71xx是对的,看看有无端口冲突
换个端口试试

from smartdns.

ll3027 avatar ll3027 commented on May 22, 2024

set_iptable()
{
IPS="ifconfig | grep "inet addr" | grep -v ":127" | grep "Bcast" | awk '{print $2}' | awk -F: '{print $2}'"
for IP in $IPS
do
//.........
done
}
改为

set_iptable()
{
IPS="ifconfig | grep "inet addr" | grep -v ":127" | grep "Bcast" | awk '{print $2}' | awk -F ':' '{print $2}'"
for IP in $IPS
do
//.........
done
}
`
-F中间没有空格。

还是没运行,换端口也不行。

from smartdns.

ll3027 avatar ll3027 commented on May 22, 2024

查看了日志,发现是socket创建失败,手动写配置文件上加上ip地址就可以了。
bind 127.0.0.1:5353。
但是到自启动就不行,仔细检查启动脚本/etc/ini.d/smartdns发现是写死了。
修改为
config_get "port" "$section" "port" "5353"
conf_append "bind" "127.0.0.1:$port"
SMARTDNS_PORT="$port"
本来的程序是ip地址是可配置项,网页上不能配置。

有个小建议:其实不需要这么多配置文件来生成最终配置文件的,只增加复杂程度了。

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

这个是因为没有IPV6协议的支持。
程序默认绑定了ipv6的全局端口,以支持ipv4,ipv6.

网页上有自定义页面可以修改配置的,不需要改脚本的。

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

新版本对这些问题作了修改,请更新验证。

from smartdns.

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.