mirror of
https://github.com/sipeed/NanoKVM.git
synced 2026-09-12 10:07:38 -05:00
Update tailscale.go to prevent malicious file download
If the network is compromised and `cdn.sipeed.com` is redirected to attacker's domain, malicious file can be deployed onto NanoKVM since it's transferred over https. It would be nice to just keep this as https since CDN already supports https at the moment.
This commit is contained in:
@@ -68,7 +68,7 @@ func (s *Service) InstallTailscale(c *gin.Context) {
|
||||
}
|
||||
|
||||
const (
|
||||
downloadUrl = "http://cdn.sipeed.com/nanokvm/resources/tailscale_riscv64.zip"
|
||||
downloadUrl = "https://cdn.sipeed.com/nanokvm/resources/tailscale_riscv64.zip"
|
||||
workspace = "/root/.tailscale"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user