Skip to content

Commit 640dc16

Browse files
feat(config): change default wrapper-lite port to 12340
- src/config.py: Instance.url default 127.0.0.1:12340, LocalInstance guestPort 12340, comment updated. - config.example.toml / README / android-deploy.md / wrapper.py self-check: 8080 -> 12340. - hostPort (host-side QEMU forward) remains 32767; only the guest wrapper-lite HTTP port changes.
1 parent 88be715 commit 640dc16

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Tasks are shown as a tree: an album / playlist / artist download creates a paren
101101

102102
| Option | Default | Meaning |
103103
|--------|---------|---------|
104-
| `[instance] url` | `127.0.0.1:8080` | wrapper-lite HTTP instance |
104+
| `[instance] url` | `127.0.0.1:12340` | wrapper-lite HTTP instance |
105105
| `[instance] secure` | `false` | https when `true` |
106106
| `[download] streamDecrypt` | `true` | decrypt while downloading (边下边解) |
107107
| `[download] decryptBatchSize` | `256` | Temari stream batch size |
@@ -127,7 +127,7 @@ cp config.example.toml config.toml
127127
uv run python main.py
128128
```
129129

130-
Point `[instance]` in `config.toml` at your wrapper-lite instance. The default is `127.0.0.1:8080` (http) for a locally self-hosted wrapper.
130+
Point `[instance]` in `config.toml` at your wrapper-lite instance. The default is `127.0.0.1:12340` (http) for a locally self-hosted wrapper.
131131

132132
# FAQ
133133
### Song did not pass the integrity check

‎android-deploy.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ python3 -m venv .venv
3333
For Android users, some configurations need to be modified.
3434
```toml
3535
[instance]
36-
url = "127.0.0.1:8080" # Address of your wrapper-lite instance
36+
url = "127.0.0.1:12340" # Address of your wrapper-lite instance
3737
secure = false
3838

3939
[download]

‎config.example.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version = "0.1.0"
33

44
[instance]
55
# wrapper-lite HTTP instance URL (scheme is decided by `secure`)
6-
url = "127.0.0.1:8080"
6+
url = "127.0.0.1:12340"
77
secure = false
88

99
[localInstance]
@@ -14,7 +14,7 @@ enable = false
1414
launcherBin = ""
1515
# Host port forwarded to the guest's wrapper-lite HTTP port.
1616
hostPort = 32767
17-
guestPort = 8080
17+
guestPort = 12340
1818
# Hardware accelerator ("" = auto-detect).
1919
hardwareAccelerator = ""
2020
memorySize = "512M"

‎src/config.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
class Instance(BaseModel):
12-
url: str = "127.0.0.1:8080"
12+
url: str = "127.0.0.1:12340"
1313
secure: bool = False
1414

1515

@@ -21,13 +21,13 @@ class LocalInstance(BaseModel):
2121
# and keep its qemu/ asset dir next to the binary.
2222
launcherBin: str = ""
2323
hostPort: int = 32767
24-
guestPort: int = 8080
24+
guestPort: int = 12340
2525
# kvm | whpx | hvf | tcg ("" = auto-detect by the launcher)
2626
hardwareAccelerator: str = ""
2727
memorySize: str = "512M"
2828
smp: int = 2
2929
# args forwarded to wrapper-lite (one per line); "" = default boot
30-
# (--host 0.0.0.0 --port 8080 --base-dir /data). e.g.:
30+
# (--host 0.0.0.0 --port 12340 --base-dir /data). e.g.:
3131
# "--login user:pass\n--code-from-file"
3232
startArgs: str = ""
3333

‎src/wrapper.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def create(create_type: Type[WrapperClient]) -> WrapperClient:
268268
if __name__ == "__main__":
269269
# Minimal self-check: construct the client and print base_url. No network.
270270
async def _self_check() -> None:
271-
client = WrapperClient("127.0.0.1:8080", False)
271+
client = WrapperClient("127.0.0.1:12340", False)
272272
print(f"WrapperClient constructed; base_url={client.base_url}")
273273
print(
274274
"status.cache_invalidate available:",

0 commit comments

Comments
 (0)