1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-08 04:20:07 +02:00

👌 Cleanup proxies

This commit is contained in:
2022-03-31 13:34:56 +02:00
parent 75f4377de8
commit 9b59fc5dae
2 changed files with 3 additions and 16 deletions

View File

@ -18,6 +18,7 @@ class DomainListProxiesCell: NSTableCellView, DomainListCellProtocol
@IBOutlet weak var buttonProxyList: NSButton! @IBOutlet weak var buttonProxyList: NSButton!
func populateCell(with site: ValetSite) { func populateCell(with site: ValetSite) {
/*
// Show the first proxy // Show the first proxy
textFieldPrimary.stringValue = (site.proxies.count == 0) textFieldPrimary.stringValue = (site.proxies.count == 0)
? "" ? ""
@ -30,5 +31,7 @@ class DomainListProxiesCell: NSTableCellView, DomainListCellProtocol
// Show button // Show button
buttonProxyList.isHidden = site.proxies.count == 0 buttonProxyList.isHidden = site.proxies.count == 0
*/
} }
} }

View File

@ -59,9 +59,6 @@ class ValetSite {
?? PhpEnv.phpInstall.version.short ?? PhpEnv.phpInstall.version.short
} }
/// Proxies set up for this domain.
var proxies: [String] = []
enum VersionSource: String { enum VersionSource: String {
case unknown = "unknown" case unknown = "unknown"
case require = "require" case require = "require"
@ -87,7 +84,6 @@ class ValetSite {
determineComposerPhpVersion() determineComposerPhpVersion()
determineDriver() determineDriver()
determineIsolated() determineIsolated()
determineProxies()
} }
} }
@ -224,18 +220,6 @@ class ValetSite {
} }
} }
/**
TODO: This method should determine which proxies are active for this site.
For test purposes this method currently will set a fixed value for
my own website, eyo. Fun. I will need to check how to determine which
sites are being proxied, first (and how this works!).
*/
private func determineProxies() {
if self.name == "nicoverbruggen" {
self.proxies = ["127.0.0.1:1337", "127.0.0.1:9999"]
}
}
// MARK: File Parsing // MARK: File Parsing
public static func isolatedVersion(_ filePath: String) -> String? { public static func isolatedVersion(_ filePath: String) -> String? {