提交 1953ea0f 编写于 作者: 徐杰

示例代码修改

Signed-off-by: N徐杰 <xujie223@huawei.com>
Change-Id: I29b3904209b8a55e99c477c4ebb33551350aa3e4
上级 ef15bfc4
...@@ -59,7 +59,7 @@ ethernet.setIfaceConfig("eth0", { ...@@ -59,7 +59,7 @@ ethernet.setIfaceConfig("eth0", {
httpProxy: { httpProxy: {
host: "180.89.xx.xx", host: "180.89.xx.xx",
port: 8080, port: 8080,
exclusionList: {"example.com","::1","localhost"} exclusionList: {"example.com","192.168.0.1"}
} }
}, (error) => { }, (error) => {
if (error) { if (error) {
...@@ -123,7 +123,7 @@ ethernet.setIfaceConfig("eth0", { ...@@ -123,7 +123,7 @@ ethernet.setIfaceConfig("eth0", {
httpProxy: { httpProxy: {
host: "180.89.xx.xx", host: "180.89.xx.xx",
port: 8080, port: 8080,
exclusionList: {"example.com","::1","localhost"} exclusionList: {"example.com","192.168.0.1"}
} }
}).then(() => { }).then(() => {
console.log("setIfaceConfig promise ok "); console.log("setIfaceConfig promise ok ");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册