Skip to content

Commit 3bad35d

Browse files
authored
Merge pull request #200 from bobbykdhan/master
Accept ed25519 and other common SSH Keys
2 parents 2b9d327 + 69a2e97 commit 3bad35d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proxstar/static/js/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ $("#create-vm").click(function(){
223223
const max_cpu = $(this).data('max_cpu');
224224
const max_mem = $(this).data('max_mem');
225225
const max_disk = $(this).data('max_disk');
226-
var ssh_regex = new RegExp("ssh-rsa AAAA[0-9A-Za-z+/]+[=]{0,3}( [^@]+@[^@]+)?")
226+
var ssh_regex = new RegExp("ssh-[a-z0-9]+ AAAA[0-9A-Za-z+/]+[=]{0,3}( [^@]+@[^@]+)?");
227227
var disk = document.getElementById('disk').value;
228228
fetch(`/template/${template}/disk`, {
229229
credentials: 'same-origin',
@@ -1155,4 +1155,4 @@ $(".delete-disk").click(function(){
11551155
const vmid = $(this).data('vmid')
11561156
const disk = $(this).data('disk')
11571157
confirmDialog(`/vm/${vmid}/disk/${disk}/delete`, `Are you sure you want to delete ${disk}?`, "Delete", `Deleting ${disk}!`, `Unable to delete disk. Please try again later.`, `/vm/${vmid}`, true)
1158-
});
1158+
});

0 commit comments

Comments
 (0)