This file contains hidden or 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
| // Giithub @BlueSkyXN | |
| // Code https://gist.github.com/BlueSkyXN/b0c06952bd402545abedcb0ee73d05d9 | |
| // 仅供学习CloudFlare Worker开发使用,违规使用后果自负 | |
| // License @GPLv3 | |
| addEventListener('fetch', event => { | |
| event.respondWith(handleRequest(event.request)) | |
| }) |
This file contains hidden or 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 asynchat | |
| import base64 | |
| import ssl | |
| import asyncore | |
| from smtpd import SMTPServer as BaseSMTPServer, SMTPChannel as BaseSMTPChannel, DEBUGSTREAM | |
| def decode_b64(data): | |
| """Wrapper for b64decode, without having to struggle with bytestrings.""" |