Commit dc1271d
committed
wg-quick: linux: use sed for trimming config lines
Bash's longest matching operators combined with extended globs is
extremely slow for very large lines. There are probably very few people
for which this is noticable but in a file with 800 AllowIPs on a single
line it keeps wg-quick from stalling for 5s when performing operations.1 parent b3aafa6 commit dc1271d
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments