forgot to call flag.Parse
This commit is contained in:
		
							
								
								
									
										1
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								main.go
									
									
									
									
									
								
							@@ -24,6 +24,7 @@ func main() {
 | 
				
			|||||||
		PrinterHostname: "http://" + hostname,
 | 
							PrinterHostname: "http://" + hostname,
 | 
				
			||||||
		Port:            port,
 | 
							Port:            port,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						flag.Parse()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
 | 
						http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
 | 
				
			||||||
		if r.URL.Path == "index.html" || r.URL.Path == "/" {
 | 
							if r.URL.Path == "index.html" || r.URL.Path == "/" {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user