File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -256,13 +256,17 @@ func getExtClientConf(w http.ResponseWriter, r *http.Request) {
256
256
}
257
257
258
258
postUp := strings.Builder {}
259
- for _ , loc := range strings .Split (client .PostUp , "\n " ) {
260
- postUp .WriteString (fmt .Sprintf ("PostUp = %s\n " , loc ))
259
+ if client .PostUp != "" && params ["type" ] != "qr" {
260
+ for _ , loc := range strings .Split (client .PostUp , "\n " ) {
261
+ postUp .WriteString (fmt .Sprintf ("PostUp = %s\n " , loc ))
262
+ }
261
263
}
262
264
263
265
postDown := strings.Builder {}
264
- for _ , loc := range strings .Split (client .PostDown , "\n " ) {
265
- postDown .WriteString (fmt .Sprintf ("PostDown = %s\n " , loc ))
266
+ if client .PostDown != "" && params ["type" ] != "qr" {
267
+ for _ , loc := range strings .Split (client .PostDown , "\n " ) {
268
+ postDown .WriteString (fmt .Sprintf ("PostDown = %s\n " , loc ))
269
+ }
266
270
}
267
271
268
272
config := fmt .Sprintf (`[Interface]
You can’t perform that action at this time.
0 commit comments