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
#!/bin/bash | |
set -ex | |
# 相关技术连接: | |
# https://github.com/XTLS/Xray-install | |
# https://github.com/XTLS/Xray-examples | |
## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
## !不建议关闭操作系统的防火墙,除非你在服务商中配置了防火墙! |
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
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): |