File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ func init() {
3131 cobra .CheckErr (viper .BindPFlag ("net.endpoint" , Cmd .PersistentFlags ().Lookup ("endpoint" )))
3232
3333 Cmd .PersistentFlags ().StringP ("acid" , "a" , "" , "ac_id of srun" )
34- resp , _ , errs := gorequest .New ().Get (viper . GetString ( "net.endpoint" ) ).End ()
34+ resp , _ , errs := gorequest .New ().Get ("http://www.baidu.com" ).End ()
3535 if errs != nil {
3636 viper .SetDefault ("net.acid" , "0" )
3737 } else if acid := resp .Request .URL .Query ().Get ("ac_id" ); acid != "" {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ func New(endpoint, acID string) *PortalServer {
1414 acID : acID ,
1515 jsonpCallback : "jQuery112403771213770126085_" + timestampStr ,
1616 timestampStr : timestampStr ,
17- internetCheck : "https ://www.baidu.com" ,
17+ internetCheck : "http ://www.baidu.com" ,
1818 }
1919}
2020
You can’t perform that action at this time.
0 commit comments