Giter Site home page Giter Site logo

只能监听在ipv4上吗? about vnts HOT 6 CLOSED

lbl8603 avatar lbl8603 commented on June 20, 2024
只能监听在ipv4上吗?

from vnts.

Comments (6)

lbl8603 avatar lbl8603 commented on June 20, 2024

后续会支持

from vnts.

muziling avatar muziling commented on June 20, 2024

@lbl8603
最新代码有问题

root@opmain:~# cat ./log/vnts.log
2023-12-22T20:29:11.758846372+08:00 [src/main.rs:186] INFO vnts:config:ConfigInfo { port: 65534, white_token: None, gateway: 10.26.0.1, broadcast: 10.26.0.255, netmask: 255.255.255.0, check_finger: false }
2023-12-22T20:29:11.759166838+08:00 [src/main.rs:194] INFO vnts:监听udp ipv4地址: 0.0.0.0:65534
2023-12-22T20:29:11.759297717+08:00 [src/main.rs:199] WARN vnts:udp_ipv6启动失败:Os { code: 98, kind: AddrInUse, message: "Address in use" }
root@opmain:~# cat ./log/log4rs.yaml
refresh_rate: 30 seconds
appenders:
  rolling_file:
    kind: rolling_file
    path: log/vnts.log
    append: true
    encoder:
      pattern: "{d} [{f}:{L}] {h({l})} {M}:{m}{n}"
    policy:
      kind: compound
      trigger:
        kind: size
        limit: 10 mb
      roller:
        kind: fixed_window
        pattern: log/vnts.{}.log
        base: 1
        count: 5

root:
  level: info
  appenders:
    - rolling_file

from vnts.

lbl8603 avatar lbl8603 commented on June 20, 2024

这是ipv6的端口冲突了吧

from vnts.

muziling avatar muziling commented on June 20, 2024

没有冲突,netstat看过了,我这个是在openwrt上试的

在ubuntu下也试了,也是报这个错误,简单的尝试方法就是不加参数,直接./vnts 执行

from vnts.

lbl8603 avatar lbl8603 commented on June 20, 2024

是代码有点问题,修复了

from vnts.

muziling avatar muziling commented on June 20, 2024

没问题了

from vnts.

Related Issues (10)

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.