[]libwebsocket

今天项目组内测试的时候,发现服务器连接不上去,我们打印了log,
2018-08-21 11:20:31.548226+0800 game_hao[6707:3937898] new JSWebSocket::this=c41bb4a0 deletgate=c425c050
2018-08-21 11:20:31.548618+0800 game_hao[6707:3937898] WebSocket::init m_host: game.example.com, m_port: 6666, m_path: /ws/
[2018/08/21 11:20:31:5503] NOTICE: Initial logging level 7
[2018/08/21 11:20:31:5504] NOTICE: Libwebsockets version: 2.3.0 layabox_mac@localhost-
[2018/08/21 11:20:31:5504] NOTICE: IPV6 compiled in and enabled
[2018/08/21 11:20:31:5504] NOTICE: libev support not compiled in
[2018/08/21 11:20:31:5505] NOTICE: libuv support not compiled in
[2018/08/21 11:20:31:5513] NOTICE:  Threads: 1 each 2560 fds
[2018/08/21 11:20:31:5515] NOTICE:  mem: platform fd map: 20480 bytes
[2018/08/21 11:20:31:5520] NOTICE:  Compiled with OpenSSL support
[2018/08/21 11:20:31:5521] NOTICE: Doing SSL library init
[2018/08/21 11:20:31:5576] NOTICE: Creating Vhost 'default' port -1, 1 protocols, IPv6 on
[2018/08/21 11:20:31:5597] NOTICE: lws_context_init_client_ssl: doing cert filepath
2018-08-21 11:20:31.559954+0800 game_hao[6707:3937898]  requestLogin.............238387
[2018/08/21 11:20:31:5607] NOTICE: Loaded client cert /var/mobile/Containers/Data/Application/F09CD563-F37F-4B17-A1DB-742CF5D947D1/Library/Caches/ssl.crt
[2018/08/21 11:20:31:5607] NOTICE: lws_context_init_client_ssl: doing private key filepath
[2018/08/21 11:20:31:5608] NOTICE: Loaded client cert private key /var/mobile/Containers/Data/Application/F09CD563-F37F-4B17-A1DB-742CF5D947D1/Library/Caches/ssl.pem
[2018/08/21 11:20:31:5608] NOTICE:  mem: per-conn:          584 bytes + protocol rx buf
[2018/08/21 11:20:31:5609] NOTICE: lws_client_connect_2: 0x10586eac0: address jsyjx-game.900sy.com
[2018/08/21 11:20:31:5623] NOTICE: Connect failed errno=65
 
看上似乎是启动了ipv6的协议认证,我们环境是ipv4的,我们的域名兼容了v4和v6的dns查询, 但我们在浏览器和电脑是能正常访问的,我们打包出来一个app,就不能正常连接上服务器了。
不知道有没小伙伴遇到过这个。
已邀请:

Laya_XS

赞同来自:

先把域名的ivp6解析去掉,只保留ipv4的试试。
苹果审核并不要求域名支持ipv6,只要app支持ipv6就行,
有问题在回帖,谢谢。

要回复问题请先

商务合作
商务合作