Skip to content

Commit e6550bc

Browse files
committed
bug fixed
1 parent 78962b0 commit e6550bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/net/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 != "" {

pkg/srun/portal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)