mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-14 12:46:05 +00:00
- Move all macOS-specific code from root to mac/ directory - Move app icons and assets to dedicated assets/ directory - Update GitHub workflows for new structure - Consolidate documentation files - Clean up root directory for better multi-platform organization
32 lines
803 B
Swift
32 lines
803 B
Swift
import Foundation
|
|
|
|
/// Dashboard access mode.
|
|
///
|
|
/// Determines the network binding configuration for the VibeTunnel server.
|
|
/// Controls whether the web interface is accessible only locally or
|
|
/// from other devices on the network.
|
|
enum DashboardAccessMode: String, CaseIterable {
|
|
case localhost
|
|
case network
|
|
|
|
var displayName: String {
|
|
switch self {
|
|
case .localhost: "Localhost only"
|
|
case .network: "Network"
|
|
}
|
|
}
|
|
|
|
var bindAddress: String {
|
|
switch self {
|
|
case .localhost: "127.0.0.1"
|
|
case .network: "0.0.0.0"
|
|
}
|
|
}
|
|
|
|
var description: String {
|
|
switch self {
|
|
case .localhost: "Only accessible from this Mac."
|
|
case .network: "Accessible from other devices on this network."
|
|
}
|
|
}
|
|
}
|