Comments (2)
als-master\ui\src\components\Utilities\Ping.vue 第62行
if (ticket.length == 0 && e[2] == this.host && e.length == 4) {
ticket = e[3];
this.wsMessage.splice(i, 1);
return true;
}
if里面的 e[2] == this.host ,如果输入的是域名,后端会解析成对应ip地址然后返回,会导致和前端输入的不一样,导致一直程序卡住
from als.
或者修改后端第一次返回值
als-master\backend\app\clients\Websocket\Commands\Ping.php 第15行
$domain = array_shift($args);
$host = gethostbyname($domain);
if ($host === false || ($host == $domain && !ip2long($domain))) {
return $this->end();
}
$this->client->send("{$this->commandIndex}|1|{$host}|{$this->ticket}");
最后一行 $host 改成 $domain 可以让前端正确进入后续阶段
from als.
Related Issues (18)
- 无法关闭server traffic
- fix: iperf3 port range env name
- "/tmp/als_readme.md"的映射目录怎么写 HOT 2
- [BUG] SPONSOR_MESSAGE使用/tmp/als_readme.md报错 HOT 2
- 测速建议两种模式,单线程和多线程,这样大家就能更真实的了解网络水平 HOT 3
- 路由跟踪 提示 这个是什么意思啊 HOT 1
- fix: child process process pid recycle
- How to add domain? HOT 1
- 请教一下使用Nginx反代如何获取真实IP HOT 6
- use relative path for speedtest static file
- [BUG] 如何开启iperf3 HOT 1
- 服务器信息下没有返回服务器位置和IP信息 HOT 4
- dont set public path in ui build
- 请教如何改端口? HOT 1
- [BUG] 内网环境未能获取外网ip时,iPerf3不能显示端口 HOT 2
- 后续版本希望可以加入验证功能 HOT 1
- 可否定制部分内容 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from als.