创建WebWolf容器时如果不是使用的的默认ip和端口 [http://localhost:8081](http://localhost:8081) 在WebGoat `Admin password reset` 这一关填写邮件地址后会导致无法发送邮件给WebWolf 例如: [http://10.1.1.111:8080/WebGoat/start.mvc#lesson/Challenge7.lesson](http://10.1.1.111:8080/WebGoat/start.mvc#lesson/Challenge7.lesson) <img width="400" alt="图片" src="https://user-images.githubusercontent.com/27055860/194764398-140f0062-8a0a-4798-aafd-8ec8cce3a0b3.png"> <br> 分析返回值发现webwolf的mail配置用的是默认配置 <img width="400" alt="图片" src="https://user-images.githubusercontent.com/27055860/194764543-fabc4b99-7cfc-4aa5-9740-64f5a71c3fa2.png"> <br> 代码逻辑对应 [webgoat-lessons/challenge/src/main/java/org/owasp/webgoat/challenges/challenge7/Assignment7.java](https://github.com/WebGoat/WebGoat/blob/43760ee886273ef2dd877d3af37c5053d6912caa/webgoat-lessons/challenge/src/main/java/org/owasp/webgoat/challenges/challenge7/Assignment7.java ) <img width="900" alt="图片" src="https://user-images.githubusercontent.com/27055860/194767179-5f7c97b1-eec2-4398-a8b6-86ff096c17ca.png"> <br> 配置文件对应 [webgoat-container/src/main/resources/application-webgoat.properties](https://github.com/WebGoat/WebGoat/blob/43760ee886273ef2dd877d3af37c5053d6912caa/webgoat-container/src/main/resources/application-webgoat.properties) <img width="900" alt="图片" src="https://user-images.githubusercontent.com/27055860/194766717-730328a7-299c-4e25-9040-e5e646a04fe5.png"> 建议在WebGoat对应的docker-compose.yml 启动命令或启动脚本中增加环境变量`WEBWOLF_HOST`和`WEBWOLF_PORT` 来指定非默认环境情况下WebWolf的ip和端口