Skip to content

Commit

Permalink
Merge pull request #200 from bobbykdhan/master
Browse files Browse the repository at this point in the history
Accept ed25519 and other common SSH Keys
  • Loading branch information
jabbate19 committed Mar 7, 2024
2 parents 2b9d327 + 69a2e97 commit 3bad35d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxstar/static/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ $("#create-vm").click(function(){
const max_cpu = $(this).data('max_cpu');
const max_mem = $(this).data('max_mem');
const max_disk = $(this).data('max_disk');
var ssh_regex = new RegExp("ssh-rsa AAAA[0-9A-Za-z+/]+[=]{0,3}( [^@]+@[^@]+)?")
var ssh_regex = new RegExp("ssh-[a-z0-9]+ AAAA[0-9A-Za-z+/]+[=]{0,3}( [^@]+@[^@]+)?");
var disk = document.getElementById('disk').value;
fetch(`/template/${template}/disk`, {
credentials: 'same-origin',
Expand Down Expand Up @@ -1155,4 +1155,4 @@ $(".delete-disk").click(function(){
const vmid = $(this).data('vmid')
const disk = $(this).data('disk')
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)
});
});

0 comments on commit 3bad35d

Please sign in to comment.