2
ETiV 2015-10-31 23:36:39 +08:00 via iPhone
iptables 映射一下呢?公网某端口映射到 127.1 的端口
|
3
TheCure 2015-11-01 00:11:36 +08:00
sed -i "s/before/after/g" yaml.txt
|
4
izoabr 2015-11-01 01:03:07 +08:00
不知道你原文是什么样得,是域名还是 IP ?如果是域名干脆直接 hosts 固化得了
|
5
Chigogo OP @callofmx 在 Mac 下 sed 要加一个空串哦~
sed -i "" "s/before/after/g" yaml.txt 看我的: alias lantern='sed -i "" "s/127.0.0.1/192.168.1.123/g" ~/Library/Application\ Support/Lantern/lantern-2.0.10.yaml; open /Applications/Lantern.app; sleep 6; sudo networksetup -setautoproxystate 'Wi-Fi' off' |