GithubHelp home page GithubHelp logo

Comments (4)

mnixry avatar mnixry commented on May 20, 2024

可以看uvicorn的文档: https://www.uvicorn.org/settings/#socket-binding

Use --host 0.0.0.0 to make the application available on your local network. IPv6 addresses are supported, for example: --host '::'.

from nonebot-plugin-gocqhttp.

LeonX86 avatar LeonX86 commented on May 20, 2024

可以看uvicorn的文档: https://www.uvicorn.org/settings/#socket-binding

Use --host 0.0.0.0 to make the application available on your local network. IPv6 addresses are supported, for example: --host '::'.

看了一下他的文档并搜索了一下,ipv4现在成功了,但是因为gocqhttp里默认的本地反代就是127.0.0.1
所以写ipv6 HOST=::这样子会直接连不上
image
然后我看HOST这个参数好像也没法同时写两个值?
就是说只能ipv4和ipv6二选一嘛

from nonebot-plugin-gocqhttp.

mnixry avatar mnixry commented on May 20, 2024

那你可以不用host网络模式(

可以用Docker带的那个端口映射开到公网,比较方便👀

from nonebot-plugin-gocqhttp.

LeonX86 avatar LeonX86 commented on May 20, 2024

docker的端口映射是只能ipv4的,ipv6的话只支持host(这似乎是docker的bug网上也有很多帖子说),没事就这样吧,不折腾了,能内网穿透访问看就行啦

from nonebot-plugin-gocqhttp.

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.