Implement local login
Route login and character requests by their original host names on one loopback port. Add local accounts, saves, and credential redaction.
This commit is contained in:
1 parent
5421268fbf
commit
18f63bf33e
55 files changed
+1559
-58
No files matched your search
@@ -30,6 +30,9 @@ class PatchEdit:
|
||||
payload: bytes
|
||||
expect_original: bytes
|
||||
asm: tuple[str, ...]
|
||||
# For edits to constant data (strings) instead of code: {"encoding": ..., "text": ...}.
|
||||
# The text, encoded and padded with zero bytes to the edit's length, must equal the payload.
|
||||
data: dict | None = None
|
||||
|
||||
def __post_init__(self) -> None:
|
||||
if len(self.payload) != len(self.expect_original):
|
||||
@@ -94,6 +97,7 @@ def _read_edit(directory: Path, raw: object) -> PatchEdit:
|
||||
payload=_hex(directory, "bytes", raw["bytes"]),
|
||||
expect_original=_hex(directory, "expect_original", raw["expect_original"]),
|
||||
asm=tuple(str(line) for line in raw.get("asm", ())),
|
||||
data=raw.get("data") if isinstance(raw.get("data"), dict) else None,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user