Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能不能支持直接使用IP作为MQTT服务器地址,使用URL还要先进行域名解析 #40

Closed
xiaofyao opened this issue Mar 18, 2020 · 1 comment

Comments

@xiaofyao
Copy link

目前只支持URL作为MQTT服务器的地址,而不支持直接用IP地址

如果用URL的话,我看了源码,还要进行域名解析,解析成IP地址。能不能开发一个直接使用IP作为MQTT服务器地址的功能?

@xiaofyao xiaofyao changed the title 不使用URL作为MQTT服务器地址,直接使用IP 能不能支持直接使用IP作为MQTT服务器地址,使用URL还要先进行域名解析 Mar 18, 2020
@easyeagel
Copy link

IP地址可以直接用,如: tcp://127.0.0.1:1883,这也是一个合法的URI,可以正常使用。

@xiaofyao xiaofyao closed this as completed Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants