Skip to content

Commit 7be5d7e

Browse files
fix: port 80 ignored in ingestor endpoint (#1004)
current state - if ingest node starts at port 80 i.e. if env vars P_ADDR or P_INGESTOR_ENDPOINT are set with port 80 server ignores the port and panics at start with error fix - if port is ignored, use default port to 80
1 parent 7b8398d commit 7be5d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/storage/staging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ pub fn get_ingestor_info() -> anyhow::Result<IngestorMetadata> {
363363
// all the files should be in the staging directory root
364364
let entries = std::fs::read_dir(path)?;
365365
let url = get_url();
366-
let port = url.port().expect("here port should be defined").to_string();
366+
let port = url.port().unwrap_or(80).to_string();
367367
let url = url.to_string();
368368

369369
for entry in entries {

0 commit comments

Comments
 (0)