-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (41 loc) · 1.95 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WireGuard 2 v2ray Generator</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h2>WireGuard 2 v2ray Generator</h2>
<form id="wg-form">
<label for="name">Config Name:</label>
<input type="text" id="name" name="name" required>
<label for="address">Address:</label>
<input type="text" id="address" name="address" required>
<label for="port">Port:</label>
<input type="number" id="port" name="port" required>
<label for="secretKey">Secret Key:</label>
<input type="text" id="secretKey" name="secretKey" required>
<label for="publicKey">Public Key:</label>
<input type="text" id="publicKey" name="publicKey" required>
<label for="mtu">MTU:</label>
<input type="number" id="mtu" name="mtu" required>
<label for="peerSecretKey">Peer Secret Key:</label>
<input type="text" id="peerSecretKey" name="peerSecretKey" required>
<label for="peerPublicKey">Peer Public Key:</label>
<input type="text" id="peerPublicKey" name="peerPublicKey" required>
<label for="allowedIPs">Allowed IPs:</label>
<input type="text" id="allowedIPs" name="allowedIPs" required>
<button type="button" onclick="convertToURL()">Generate URL</button>
</form>
<div class="output">
<h3>Generated Config:</h3>
<p id="wg-uri"></p>
<button type="button" onclick="copyToClipboard()">Copy to Clipboard</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>