Metadata-Version: 2.4
Name: pymrf4
Version: 0.1.1
Summary: Yet another proxy server
License: MIT License
        
        Copyright (c) 2023 Guo Xinghua
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: bcoding>=1.5
Requires-Dist: flask>=2.3
Requires-Dist: numpy>=2.0
Requires-Dist: peewee>=3.17
Requires-Dist: pyyaml>=6.0
Requires-Dist: requests>=2.31
Requires-Dist: smbprotocol>=1.15
Description-Content-Type: text/markdown

# pymrf4



## To test with `curl`

```bash
# client resolves the domain name, ATYP_IPV4(1)
curl --socks5 socks5://127.0.0.1:9050 http://www.baidu.com
# Or let the proxy resolve the domain name, ATYP_DOMAINNAME(3)
curl --socks5 socks5h://127.0.0.1:9050 http://www.baidu.com
```

## Install as a Windows service

With nssm:

```bat
nssm install pymrf4 D:\Python312\python.exe
nssm set pymrf4 AppParameters "-m pymrf4"
nssm set pymrf4 AppDirectory C:\pymrf4
nssm set pymrf4 AppExit Default Restart
nssm set pymrf4 AppStdout C:\pymrf4\logs\service-err.log
nssm set pymrf4 AppStderr C:\pymrf4\logs\service-err.log
nssm set pymrf4 DisplayName pymrf4
nssm set pymrf4 ObjectName LocalSystem
nssm set pymrf4 Start SERVICE_AUTO_START
nssm set pymrf4 Type SERVICE_WIN32_OWN_PROCESS

```