diff --git a/frontend/src/GraphView.jsx b/frontend/src/GraphView.jsx
index ac3e8fb..a315bd8 100644
--- a/frontend/src/GraphView.jsx
+++ b/frontend/src/GraphView.jsx
@@ -4,6 +4,7 @@ function GraphView({ servers, connections }) {
const [nodePositions, setNodePositions] = useState({});
const [draggedNode, setDraggedNode] = useState(null);
const [dragOffset, setDragOffset] = useState({ x: 0, y: 0 });
+ const [hoveredLinkId, setHoveredLinkId] = useState(null);
const svgRef = useRef(null);
if (servers.length === 0) {
@@ -98,6 +99,17 @@ function GraphView({ servers, connections }) {
return colors[country] || '#6b7280';
};
+ // Цвета/стили для разных типов туннелей
+ const getTunnelStyle = (tunnelType) => {
+ const map = {
+ GRE: { color: '#206bc4', dash: '0', width: 3 },
+ IPSec: { color: '#f59f00', dash: '6,4', width: 3 },
+ WireGuard: { color: '#2fb344', dash: '0', width: 4 },
+ OpenVPN: { color: '#be4bdb', dash: '3,3', width: 3 },
+ };
+ return map[tunnelType] || { color: '#667382', dash: '5,5', width: 2 };
+ };
+
return (
);
diff --git a/frontend/src/ServerManager.jsx b/frontend/src/ServerManager.jsx
index d8338c5..92efb80 100644
--- a/frontend/src/ServerManager.jsx
+++ b/frontend/src/ServerManager.jsx
@@ -700,11 +700,20 @@ function ServerManager() {
/>
-
+
Граф связей между серверами
+
Поддержка: GRE, IPSec, WireGuard, OpenVPN
+
+
+
GRE
+
IPSec
+
WireGuard
+
OpenVPN
+
+