official_dulin

Results 81 comments of official_dulin

Save Questions. What's the ES6 module lookup rules? How does it work? ex. ``` import React from 'react'; ``` How does es6 know where is the react. If I define...

@hlomzik yeah. Here is my understand: Because of compiler, like `babel`, compile es6 `import` to AMD`and`commonJS`. so, the path/module resolving rule is the`amd`and`commonjs` path/module resolving rule? My English is not...

@getify OK, I know it. Anyway, Thank you!

+1, What does `Notice: dayjs.tz.setDefault will not affect existing dayjs objects.` exactly mean? Please add an example for the documentation.

@Huang-Libo 请确保本地代理服务器的地址和端口是`127.0.0.1:1080` 请打开ss,进行代理服务器设置 我试了下,退出ss,就是你这个错误,因为本地代理服务器没有启动。

@Ericva 1.本地的ss是客户端,你的VPS上的ss是服务端,客户端的服务器配置中,地址和端口填写你VPS的ip地址和ss服务端运行后的端口号,这样客户端就连接到你的vps的ss服务了。 ![image](https://user-images.githubusercontent.com/17866683/33050928-6d40fe3a-cea2-11e7-8584-f818ce4c5689.png) ss客户端启动后,可以修改客户端服务的端口号,不一定是1080,使用switchomega,proxifier等代理切换软件时,指定ss的ip和端口是客户端的。 ![image](https://user-images.githubusercontent.com/17866683/33050878-34187c28-cea2-11e7-9dcb-2f21cc7046ca.png) 2.你的服务器配置ip或者端口不正确,客户端ss没有链接到VPS上的ss服务端,或者是你VPS上的ss服务端没有启动或是出了问题。如下图,我随便输入了一个ip和端口,执行proxy后,结果显示“curl: (52) Empty reply from server” ![](https://ws1.sinaimg.cn/large/006tKfTcgy1flphjyzr8fj30ws0t8glx.jpg) 3.proxychains-ng和通过在`.zshrc`或者`.bashrc`中指定代理`alias`是两种终端走代理的方式,没有依赖关系。

@liushazm @1057437122 @Huang-Libo 说的没错 网络七层协议(OSI):7 应用层 6 表示层 5 会话层 4 传输层 3 网络层 2 数据链路层 1 物理层 上层模型依赖下层模型 1. `ping`命令使用的`ICMP`协议,作用在OSI模型第3层——网络层(IP层) 使用wireshark抓包查看`ping`命令发送给目标地址的数据包 ![image](https://user-images.githubusercontent.com/17866683/37201698-5ed57990-23c3-11e8-8774-2d308f3d25d5.png) 2. SOCKS作用在OSI模型的第5层——会话层 3. HTTP、FTP、SMTP作用在OSI模型第7层——网络层 ss支持的代理协议是socks(5 会话层)和http(7 应用层),最终都依赖于TCP(4...

@usercao 为了方便,设置的命令别名 执行`proxy`就表示执行`export all_proxy=socks5://127.0.0.1:1080`

@xiaohao111 ![image](https://user-images.githubusercontent.com/17866683/43053428-2b915bc4-8e5f-11e8-816f-581871f5c163.png) ![image](https://user-images.githubusercontent.com/17866683/43053435-35c280aa-8e5f-11e8-8b5c-14c9e14b1a8d.png)