@Override
	public void run(){
        System.setProperty("http.proxyHost", addr);
        System.setProperty("http.proxyPort", port);
        URL url;
        InputStream in;
        try {
            url = new URL("http://www.xiami.com");
            in = url.openStream();
            if(in!=null){
                byte[] tmp =new byte[1024];
                String s;
                int i;
                while((i=in.read(tmp))!=-1){
                    s=new String(tmp,0,i);
                    if(s.indexOf("xiami.net")!=-1){
                        Log.Print(s);
                        System.out.println(addr+":"+port);
                        FileWriter fw;
                        try {
                            fw = new FileWriter("D:\\res\\proxy-"+addr+"-"+port+".txt", true);
                            fw.append(addr+":"+port+'\n');
                            fw.close();
                        } catch (IOException e) {
                            // TODO Auto-generated catch block
                            e.printStackTrace();
                        }
                    }
                }
            }
        } catch (MalformedURLException e) {
            // TODO Auto-generated catch block
            //e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            //e.printStackTrace();
        }finally {
            mcdl.countDown();
        }
    }