project-mirai / mirai-api-http

Mirai HTTP API (console) plugin
GNU Affero General Public License v3.0
1.65k stars 345 forks source link

websocket adaptor 只监听了ipv6 #578

Closed sxd1140 closed 2 years ago

sxd1140 commented 2 years ago
  12:02:48 [INFO] iTXTech Mirai Console Loader version 2.1.0-71ec418
  12:02:48 [INFO] https://github.com/iTXTech/mirai-console-loader
  12:02:48 [INFO] This program is licensed under GNU AGPL v3
  12:02:50 [INFO] Mirai Console Loader Announcement:
Mirai Console Loader 公告栏

如果在图片上传的时候遇到问题请与我们联系 (需要提供图片文件源本)
`- 如 Unsupported image type for ExternalResource *
`  considering use gif/png/bmp/jpg format.
`- Tracker: https://github.com/mamoe/mirai/issues/new/choose

常用资源整合
`- https://mirai.mamoe.net/topic/653

MCL 已推出 2.1.0,更好的支持 Mirai 2.11 的插件系统,建议更新。

  12:02:50 [INFO] Verifying "net.mamoe:mirai-console" v2.11.0
  12:02:50 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.11.0
  12:02:50 [INFO] Verifying "net.mamoe:mirai-core-all" v2.11.0
  12:02:50 [INFO] Verifying "org.itxtech:mcl-addon" v2.0.2
  12:02:50 [INFO] Verifying "org.itxtech:soyuz" v1.0.0
2022-05-27 12:02:51 I/main: Starting mirai-console...
2022-05-27 12:02:51 I/main: Backend: version 2.11.0, built on 2022-05-19 22:08:40.
2022-05-27 12:02:51 I/main: Frontend Terminal: version 2.11.0, provided by Mamoe Technologies
2022-05-27 12:02:51 I/main: Welcome to visit https://mirai.mamoe.net/
2022-05-27 12:02:51 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2022-05-27 12:02:51 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation
2022-05-27 12:02:51 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2022-05-27 12:02:51 I/plugin: Successfully loaded plugin Soyuz v1.0.0
2022-05-27 12:02:51 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http v2.5.2
2022-05-27 12:02:51 I/plugin: Successfully loaded plugin MCL Addon v2.0.2
2022-05-27 12:02:52 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop
2022-05-27 12:02:52 W/stderr: ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
2022-05-27 12:02:52 I/Soyuz: iTXTech Soyuz is listening on ws://localhost:9876
2022-05-27 12:02:52 I/Mirai HTTP API: ********************************************************
2022-05-27 12:02:52 I/ws adapter: >>> [ws adapter] is listening at ws://0.0.0.0:9999
2022-05-27 12:02:52 I/Mirai HTTP API: Http api server is running with verifyKey: xxxx
2022-05-27 12:02:52 I/Mirai HTTP API: adaptors: [ws]
2022-05-27 12:02:52 I/Mirai HTTP API: ********************************************************
2022-05-27 12:02:52 I/MCL Addon: iTXTech MCL Version: 2.1.0-71ec418

netstat

tcp6       0      0 :::9999                 :::*                    LISTEN

5E34443DC550DB8DE99B0489B342BF59

之前是好的

ryoii commented 2 years ago

检查下网络设置?监听 0.0.0.0 的话应该监听全部网络 ip 了,没有 ipv4 的话是不是没有被分配到 ipv4 的地址

sxd1140 commented 2 years ago
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0

是有ipv4地址的

应该是wsl和win的网络问题, 放弃wsl了,老老实实用虚拟机.