Unverified Commit dce19320 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

dbris: get_journey_p: respect proxy config

parent 0a0c3663
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ sub get_journey_p {
	my $now     = DateTime->now( time_zone => 'Europe/Berlin' );

	my $agent = $self->{user_agent};
	if ( my $proxy = $self->{service_config}{dbris}{proxy} ) {
	if ( my $proxy = $self->{service_config}{'bahn.de'}{proxy} ) {
		$agent = Mojo::UserAgent->new;
		$agent->proxy->http($proxy);
		$agent->proxy->https($proxy);