Skip to content

Instantly share code, notes, and snippets.

View whg517's full-sized avatar
🥳
Hi~

whg517

🥳
Hi~
View GitHub Profile
#!/bin/bash
set -ex
# 相关技术连接:
# https://github.com/XTLS/Xray-install
# https://github.com/XTLS/Xray-examples
## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
## !不建议关闭操作系统的防火墙,除非你在服务商中配置了防火墙!
@whg517
whg517 / sample-aio-server.py
Last active December 14, 2024 18:42
sample-aio-server.py
import asyncio
import logging
from asyncio import Protocol, transports, AbstractEventLoop
from typing import Optional
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
def get_remote_addr(transport):