Skip to content

Commit 85576cf

Browse files
committed
backend: proxy, svc status as int32
1 parent 33ee198 commit 85576cf

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

intra/backend/ipn_proxies.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@ const ( // see ipn/proxies.go
7070
// status of proxies
7171

7272
// proxy paused until resumed; will not dial
73-
TPU = 3
73+
TPU int32 = 3
7474
// proxy UP but not responding
75-
TNT = 2
75+
TNT int32 = 2
7676
// proxy idle
77-
TZZ = 1
77+
TZZ int32 = 1
7878
// proxy UP but not yet OK
79-
TUP = 0
79+
TUP int32 = 0
8080
// proxy OK
81-
TOK = -1
81+
TOK int32 = -1
8282
// proxy OK but erroring out
83-
TKO = -2
83+
TKO int32 = -2
8484
// proxy stopped
85-
END = -3
85+
END int32 = -3
8686
)
8787

8888
// RpnOps carries options that control the behaviour of Update and RegisterWin.

intra/backend/rnet_services.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ const (
2121
// status of proxies
2222

2323
// svc UP
24-
SUP = 0
24+
SUP int32 = 0
2525
// svc OK
26-
SOK = 1
26+
SOK int32 = 1
2727
// svc not OK
28-
SKO = -1
28+
SKO int32 = -1
2929
// svc stopped
30-
SOP = -2
30+
SOP int32 = -2
3131
)
3232

3333
type Server interface {

0 commit comments

Comments
 (0)