File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ Just replace `http.ListenAndServe` with `anyhttp.ListenAndServe`.
17
17
18
18
Syntax
19
19
20
- unix?path=<socket_path>&mode=<socket file mode>&remove_existing=<yes|no >
20
+ unix?path=<socket_path>&mode=<socket file mode>&remove_existing=<true|false >
21
21
22
22
Examples
23
23
24
24
unix?path=relative/path.sock
25
25
unix?path=/var/run/app/absolutepath.sock
26
- unix?path=/run/app.sock&mode=600&remove_existing=no
26
+ unix?path=/run/app.sock&mode=600&remove_existing=false
27
27
28
28
| option | description | default |
29
29
| -----------------| ------------------------------------------------| ----------|
@@ -35,7 +35,7 @@ Examples
35
35
36
36
Syntax
37
37
38
- sysd?idx=<fd index>&name=<fd name>&check_pid=<yes|no >&unset_env=<yes|no >&idle_timeout=<duration>
38
+ sysd?idx=<fd index>&name=<fd name>&check_pid=<true|false >&unset_env=<true|false >&idle_timeout=<duration>
39
39
40
40
Only one of ` idx ` or ` name ` has to be set
41
41
Original file line number Diff line number Diff line change @@ -72,6 +72,20 @@ func Test_parseAddress(t *testing.T) {
72
72
wantSysc : nil ,
73
73
wantErr : true ,
74
74
},
75
+ {
76
+ name : "systemd address with check_pid and unset_env" ,
77
+ addr : "sysd?idx=0&check_pid=false&unset_env=f" ,
78
+ wantAddrType : SystemdFD ,
79
+ wantUsc : nil ,
80
+ wantSysc : & SysdConfig {
81
+ FDIndex : ptr (0 ),
82
+ FDName : nil ,
83
+ CheckPID : false ,
84
+ UnsetEnv : false ,
85
+ IdleTimeout : nil ,
86
+ },
87
+ wantErr : false ,
88
+ },
75
89
}
76
90
for _ , tt := range tests {
77
91
t .Run (tt .name , func (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments