Commit acbe593
committed
Add domain name and wildcard support to no-proxy list
IP/CIDR entries continue to bypass the proxy through iptables rules.
Domain and wildcard entries now generate moproxy policy rules that use
"dst domain ... direct" for domain-based proxy bypass.
The backend splits noproxy entries by type: IP/CIDR entries go to
MOPROXY_NOPROXY for iptables processing, while domain entries produce
/etc/moproxy/policy.rules consumed by the new --policy flag. SIGHUP
already reloads both the proxy list and the policy file.
The settings validator now accepts domain names (example.com) and
wildcard domains (*.example.com) in addition to IP addresses and
CIDR subnets.
Ref #98031 parent 9448567 commit acbe593
File tree
4 files changed
+80
-13
lines changed- pkg/rancher-desktop
- assets/scripts
- backend
- main/commandServer
- __tests__
4 files changed
+80
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
776 | 777 | | |
777 | 778 | | |
778 | 779 | | |
779 | | - | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
780 | 796 | | |
781 | 797 | | |
782 | 798 | | |
| |||
Lines changed: 38 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
1038 | | - | |
| 1038 | + | |
1039 | 1039 | | |
1040 | 1040 | | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
1041 | 1065 | | |
1042 | 1066 | | |
1043 | 1067 | | |
1044 | | - | |
1045 | 1068 | | |
1046 | 1069 | | |
1047 | | - | |
1048 | | - | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1049 | 1080 | | |
1050 | 1081 | | |
1051 | 1082 | | |
1052 | 1083 | | |
1053 | | - | |
1054 | 1084 | | |
1055 | 1085 | | |
1056 | 1086 | | |
| |||
1085 | 1115 | | |
1086 | 1116 | | |
1087 | 1117 | | |
1088 | | - | |
| 1118 | + | |
1089 | 1119 | | |
1090 | 1120 | | |
1091 | 1121 | | |
1092 | | - | |
1093 | | - | |
| 1122 | + | |
| 1123 | + | |
1094 | 1124 | | |
1095 | 1125 | | |
1096 | 1126 | | |
| |||
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
694 | | - | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
695 | 716 | | |
696 | 717 | | |
697 | 718 | | |
| |||
707 | 728 | | |
708 | 729 | | |
709 | 730 | | |
710 | | - | |
| 731 | + | |
711 | 732 | | |
712 | 733 | | |
713 | | - | |
| 734 | + | |
714 | 735 | | |
715 | 736 | | |
716 | 737 | | |
| |||
0 commit comments