xi_lin
V2EX  ›  macOS

ping localhost 显示为 0.0.1.x,但是 hosts 中没有被修改

  •  
  •   xi_lin · Feb 26, 2015 · 2846 views
    This topic created in 4134 days ago, the information mentioned may be changed or developed.

    hosts中显示为

    ::1 localhost #这个是ipv6的loopback?

    ping的时候:

    PING localhost (0.0.1.147): 56 data bytes
    64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=9.889 ms
    64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.142 ms

    最后一位随机改变。

    会是什么原因呢?在用astrill,会是因为它吗?

    4 replies    2015-02-26 14:51:24 +08:00
    bsfx2
        1
    bsfx2  
       Feb 26, 2015
    目测你在用 OpenWeb...
    xi_lin
        2
    xi_lin  
    OP
       Feb 26, 2015
    @Satelli 是的。OpenWeb会改localhost?我直接在hosts里加了一行127.0.0.1以后ping正常了,同时OpenWeb也能正常用。
    bsfx2
        3
    bsfx2  
       Feb 26, 2015
    @xi_lin 不知道,用 OpenWeb 的时候你 ping 任何域名都是 0.0.1.x 的,目测 Astrill 劫持了 DNS,然后强制走它客户端里设置的 DNS。StealthVPN 和 OpenVPN 的时候不会这样。
    xi_lin
        4
    xi_lin  
    OP
       Feb 26, 2015
    @Satelli 原来如此。我之前还以为OpenWeb只是修改了系统代理设置。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5510 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 06:03 · PVG 14:03 · LAX 23:03 · JFK 02:03
    ♥ Do have faith in what you're doing.