File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ var Conf = struct {
2828}{
2929 PathRule : "/rule.ls" ,
3030 PathCIDR : "/rule.cidr" ,
31- Version : "v1.22 .0" ,
31+ Version : "v1.23 .0" ,
3232}
3333
3434const helpMsg = `Usage: daze <command> [<args>]
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ func (s *Stream) Write(p []byte) (int, error) {
8787 buf []byte
8888 l = 0
8989 n = 0
90- z = 0
90+ z = 1
9191 )
9292 for {
9393 switch {
@@ -105,12 +105,9 @@ func (s *Stream) Write(p []byte) (int, error) {
105105 binary .BigEndian .PutUint16 (buf [2 :4 ], uint16 (l ))
106106 copy (buf [4 :], p [:l ])
107107 p = p [l :]
108- z = func () int {
109- if time .Now ().After (s .qtw ) {
110- return 2
111- }
112- return 1
113- }()
108+ if time .Now ().After (s .qtw ) {
109+ z = 2
110+ }
114111 err := s .mux .pri .Pri (z , func () error {
115112 if err := s .wer .Get (); err != nil {
116113 return err
You can’t perform that action at this time.
0 commit comments