sing-box-cli 0.0.6__tar.gz → 0.0.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/CHANGELOG.md +6 -1
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/PKG-INFO +1 -1
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/pyproject.toml +1 -1
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/src/sing_box_service/__init__.py +1 -1
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/src/sing_box_service/service.py +4 -2
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/uv.lock +1 -1
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/.github/dependabot.yml +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/.github/workflows/main.yml +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/.gitignore +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/.pre-commit-config.yaml +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/.vscode/PythonImportHelper-v2-Completion.json +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/.vscode/settings.json +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/LICENSE +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/README.md +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/assets/image.png +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/scripts/bump.sh +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/scripts/format.sh +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/scripts/lint.sh +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/src/sing_box_service/config.py +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/src/sing_box_service/main.py +0 -0
- {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/src/sing_box_service/py.typed +0 -0
|
@@ -2,12 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
## 0.0.
|
|
5
|
+
## 0.0.8 - 2025-01-14
|
|
6
6
|
|
|
7
7
|
### 🚀 Features
|
|
8
8
|
|
|
9
9
|
- Add config clean_cache
|
|
10
10
|
|
|
11
|
+
### 🐛 Bug Fixes
|
|
12
|
+
|
|
13
|
+
- Service start before network connection
|
|
14
|
+
- Linux service After start condition
|
|
15
|
+
|
|
11
16
|
### 📚 Documentation
|
|
12
17
|
|
|
13
18
|
- Update linux install and run
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sing-box-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Summary: cross-platform sing-box-service manager.
|
|
5
5
|
Project-URL: Homepage, https://github.com/aittcuszz/sing-box-service
|
|
6
6
|
Project-URL: Issues, https://github.com/atticuszz/sing-box-service/issues
|
|
@@ -209,7 +209,7 @@ sort_commits = "oldest"
|
|
|
209
209
|
|
|
210
210
|
|
|
211
211
|
[tool.bumpversion]
|
|
212
|
-
current_version = "0.0.
|
|
212
|
+
current_version = "0.0.8"
|
|
213
213
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
|
214
214
|
serialize = ["{major}.{minor}.{patch}"]
|
|
215
215
|
search = "{current_version}"
|
|
@@ -159,11 +159,14 @@ class LinuxServiceManager(ServiceManager):
|
|
|
159
159
|
self.service_file = Path("/etc/systemd/system/sing-box.service")
|
|
160
160
|
|
|
161
161
|
def create_service(self) -> None:
|
|
162
|
+
"""systemctl list-units | grep -i network"""
|
|
162
163
|
service_content = f"""
|
|
163
164
|
[Unit]
|
|
164
165
|
Description=sing-box service
|
|
165
166
|
Documentation=https://sing-box.sagernet.org
|
|
166
|
-
After=network.target nss-lookup.target
|
|
167
|
+
After=network-online.target NetworkManager-wait-online.service nss-lookup.target
|
|
168
|
+
Wants=network-online.target nss-lookup.target
|
|
169
|
+
BindsTo=NetworkManager.service
|
|
167
170
|
|
|
168
171
|
[Service]
|
|
169
172
|
Type=simple
|
|
@@ -172,7 +175,6 @@ LimitNOFILE=1000000
|
|
|
172
175
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE
|
|
173
176
|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE
|
|
174
177
|
Restart=always
|
|
175
|
-
ExecStartPre={self.config.bin_path} tools synctime -w -C {self.config.install_dir}
|
|
176
178
|
ExecStart={self.config.bin_path} run -C {self.config.install_dir}
|
|
177
179
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
178
180
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|