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

Show IP address when installation is done. #787

Closed
wants to merge 5 commits into from
Closed

Show IP address when installation is done. #787

wants to merge 5 commits into from

Conversation

Ariselia
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Dec 20, 2017

Codecov Report

Merging #787 into master will increase coverage by 0.35%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #787      +/-   ##
==========================================
+ Coverage   75.03%   75.39%   +0.35%     
==========================================
  Files         188      188              
  Lines        8773     8773              
==========================================
+ Hits         6583     6614      +31     
+ Misses       1593     1565      -28     
+ Partials      597      594       -3
Impacted Files Coverage Δ
transport/internet/websocket/connection.go 65.95% <0%> (-8.52%) ⬇️
transport/internet/headers/http/http.go 77.3% <0%> (-4.26%) ⬇️
app/proxyman/inbound/dynamic.go 68.26% <0%> (-1.93%) ⬇️
transport/internet/kcp/listener.go 74.54% <0%> (-1.82%) ⬇️
proxy/freedom/freedom.go 76.74% <0%> (-1.17%) ⬇️
proxy/socks/server.go 73.84% <0%> (-0.77%) ⬇️
proxy/socks/protocol.go 56.16% <0%> (-0.65%) ⬇️
proxy/vmess/encoding/server.go 72.81% <0%> (+0.92%) ⬆️
proxy/shadowsocks/client.go 76.69% <0%> (+0.97%) ⬆️
proxy/vmess/outbound/outbound.go 75.51% <0%> (+2.04%) ⬆️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 35545cb...08019f4. Read the comment docs.

@DarienRaymond
Copy link
Contributor

What are you trying to achieve? and why is this change related to the installation?

@Ariselia
Copy link
Contributor Author

Ariselia commented Dec 20, 2017

  1. Will show servers' IP address on current session.

  2. Can make the configures for clients easier(Don't need to copy servers' IP address from VPS's panel or so).

@xiaokangwang
Copy link
Contributor

I recommend to use $(ip addr)/$(ifconfig) instead of external website.

This should able to decrease data expose.

@xiaokangwang
Copy link
Contributor

It is highly likely that the user can know the external ip of vps, as one will need it to connect via ssh.

@xiaokangwang
Copy link
Contributor

There are other things need to be considered: if the user is using a VPS within NAT, notably lowendspirit series and some vps in China, it can be really difficult for scripts to detect the IP correctly and check whether port is reachable, given no data exposed to 3rd-party.

@xiaokangwang
Copy link
Contributor

Should any other tool or user relay on this script to deduce reachable address, this could be an issue that effect their effectiveness.

@DarienRaymond
Copy link
Contributor

I don't think this is a necessary functionality for the installation script. User doesn't have to use the IP of the VPS for proxy connections. The IP displayed here may be misleading. If you need such functionality, you may wrap your own script and add any logic that suitable for your scenario.

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

Successfully merging this pull request may close these issues.

None yet

3 participants