-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
7 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,9 @@ | |
# Copyright (c) 2023 Shawwwn <[email protected]> | ||
# License: MIT | ||
import sys | ||
sys.path.pop(0) | ||
import asyncio | ||
sys.path.insert(0, '') | ||
import time | ||
import socket | ||
import uproxy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
# Core utility functions for uproxy module | ||
# Copyright (c) 2023 Shawwwn <[email protected]> | ||
# License: MIT | ||
|
||
try: | ||
import uasyncio as asyncio | ||
except: | ||
import asyncio | ||
import asyncio | ||
|
||
VERSION = 2.0 | ||
LOG_NONE = 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
# HTTP/HTTPS proxy for uproxy module | ||
# Copyright (c) 2023 Shawwwn <[email protected]> | ||
# License: MIT | ||
|
||
try: | ||
import uasyncio as asyncio | ||
except: | ||
import asyncio | ||
import asyncio | ||
from . import core | ||
|
||
async def send_http_response(ss, code, desc="", headers=[], body=None): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
# SOCKS4 proxy for uproxy module | ||
# Copyright (c) 2023 Shawwwn <[email protected]> | ||
# License: MIT | ||
|
||
import struct | ||
import socket | ||
try: | ||
import uasyncio as asyncio | ||
except: | ||
import asyncio | ||
import asyncio | ||
from . import core | ||
|
||
REQ_GRANTED = 90 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
# SOCKS5 proxy for uproxy module | ||
# Copyright (c) 2023 Shawwwn <[email protected]> | ||
# License: MIT | ||
|
||
import struct | ||
import socket | ||
import asyncio | ||
try: | ||
import uasyncio as asyncio | ||
from uasyncio.stream import Stream | ||
from asyncio.stream import Stream | ||
except: | ||
import asyncio | ||
class Stream: pass | ||
from . import core | ||
|
||
|