Commit ecd89cf
committed
namespace: accept RSLV direct (non-forwarded) in addition to PFWD
RSLV was previously rejected by the server unless forwarded via PFWD,
making the agent's direct fallback unreachable. Relax the server-side
guard so RSLV is accepted both forwarded (preferred - hides client IP
from the resolver) and direct (faster, exposes client IP). Mode choice
is delegated to the client and the operator network config.
- Server: drop the forwarded-only check on SResolver in
verifyQueueTransmission.
- Protocol: give SResolver a client role (SRMessaging) so SMPClient can
connect in the Resolver role. checkRole accepts this because RSLV
clients have no service binding (falls through to True).
- Client: add directResolveName mirroring proxyResolveName via
sendProtocolCommand with no auth and no entity (RSLV is noAuthCmd).
- Agent: wire the direct path through sendOrProxySMPCommand so the
PFWD-or-direct selection works the same as other commands.1 parent 90de60e commit ecd89cf
4 files changed
Lines changed: 24 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1993 | 1993 | | |
1994 | 1994 | | |
1995 | 1995 | | |
1996 | | - | |
1997 | | - | |
1998 | | - | |
1999 | | - | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
2000 | 2000 | | |
2001 | 2001 | | |
2002 | 2002 | | |
2003 | 2003 | | |
2004 | 2004 | | |
2005 | | - | |
| 2005 | + | |
2006 | 2006 | | |
2007 | 2007 | | |
2008 | 2008 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
1047 | 1048 | | |
1048 | 1049 | | |
1049 | 1050 | | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
1060 | 1060 | | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
1061 | 1071 | | |
1062 | 1072 | | |
1063 | 1073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | | - | |
| 491 | + | |
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1250 | 1250 | | |
1251 | 1251 | | |
1252 | 1252 | | |
1253 | | - | |
| 1253 | + | |
1254 | 1254 | | |
1255 | 1255 | | |
1256 | 1256 | | |
| |||
1270 | 1270 | | |
1271 | 1271 | | |
1272 | 1272 | | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
1276 | 1276 | | |
1277 | 1277 | | |
1278 | 1278 | | |
| |||
0 commit comments