Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Srun Release v1.1.5-patch
原发布版本Srun Release v1.1.5(2021-1-2)已经无法正常连接校园网,报错如下:
基于原版Srun修改后,解决了相应连接问题。发布Release v1.1.5-patch
代码修正
修改后的代码见Release v1.1.5-patch/srun_source_code.py
配置文件的默认路径:./srun_config.ini,文件内容包括用户名和密码,格式如下:
重新编译
使用PyInstaller将这个Python脚本编译为Linux系统的可执行文件。首先,确保您已经安装PyInstaller:
进入你的Srun源码(srun_source_code.py)所在目录,运行以下命令来编译代码:
使用方法
编译完成后,在./dist目录下可找到./srun可执行文件,具体使用方法可通过./srun -h指令打印
连接验证