{"action":"opened","issue":{"url":"https://api.github.com/repos/GameXG/TcpRoute2/issues/40","labels_url":"https://api.github.com/repos/GameXG/TcpRoute2/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/GameXG/TcpRoute2/issues/40/comments","events_url":"https://api.github.com/repos/GameXG/TcpRoute2/issues/40/events","html_url":"https://github.com/GameXG/TcpRoute2/issues/40","id":126390691,"number":40,"title":"建议定时将缓存写入本地","user":{"login":"XGFan","id":5127077,"avatar_url":"https://avatars.githubusercontent.com/u/5127077?v=3","gravatar_id":"","url":"https://api.github.com/users/XGFan","html_url":"https://github.com/XGFan","followers_url":"https://api.github.com/users/XGFan/followers","following_url":"https://api.github.com/users/XGFan/following{/other_user}","gists_url":"https://api.github.com/users/XGFan/gists{/gist_id}","starred_url":"https://api.github.com/users/XGFan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XGFan/subscriptions","organizations_url":"https://api.github.com/users/XGFan/orgs","repos_url":"https://api.github.com/users/XGFan/repos","events_url":"https://api.github.com/users/XGFan/events{/privacy}","received_events_url":"https://api.github.com/users/XGFan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-13T10:42:01Z","updated_at":"2016-01-13T10:42:01Z","closed_at":null,"body":"可以以host方式写入本地\r\n```\r\n# hosts 域名类型，标准的 hosts 文件都是 base 类型。\r\n# base 完整匹配，默认值。即 www.abc.com 只匹配 www.abc.com ，不匹配 aaa.www.abc.com 。\r\n# suffix 后缀匹配。即 abc.com 匹配 abc.com、www.abc.com、aaa.www.abc.com，不匹配 aaaabc.com。\r\n# pan 泛解析匹配。即 *.abc.com 匹配 www.abc.com 、aaa.www.abc.com。不匹配 .abc.com。?.abc.com 匹配 a.abc.com。\r\n# regex 正则匹配。即 ^.+?.com$ 匹配 www.abc.com 、aaa.www.abc.com。注意：完整匹配时不要忘记 ^$ 。\r\n```\r\n以后可以方便用户直接编辑，每次打开重新载入即可，就不用每次关闭之后打开重复判断线路。"}}